Apache 2.2.17 PHP 5.3.3
Currently, my app doesn't use gzip, but I would like it to. However, I'm not sure of a few things:
- I know that IE6 has problems with it; no need to go back over those here.
- What benefits/drawbacks are there to implementing this in Apache (mod_deflate) vs PHP? Do they basically produce the same result? I assume Apache would be more efficient, is this a correct assumption?
- The app generates quite a few types of responses: pdf, xml, zip, xls, csv, images (see next point), and of course the normal AJAX-type stuff.
- I've seen that many examples choose not to gzip images, why is this? Is it due to the assumption that most images are already in a compressed format, or does it have to do with it being binary data? I do create some images dynamically, and serve others statically.
- I also stream audio files (wav, mp3) via a PHP mechanism; any gotchas here?
Essentially, if you've implemented gzip on a mature site, and run into problems, I'd love to know what those were, and what you did to work-around these problems. Thanks!