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:
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!
Nothing else to be said
Do it in Apache, it is easy to set up and requires no change to your code. You can also set it up easily to compress css and js files if you want.
Apache can be set to compress only specific file types
Compressing an already compressed file will almost always result in a larger file. If you have uncompressed images, like bmps, you will get better results using a compression technique specific to images than using gzip, so you are better off just converting them to gif, png, jpg depending on your needs.
I am not sure about streaming, but the same as images applies to audio. If it is already compressed, don't compress it again, and if it is not, use a compression technique specific to the type.
Basically, gzip is great for compressing text files so I would set Apache to compress those. For anything else, there are better solutions if you need it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With