WordPress 2.5 no longer provides an option to turn on gzip compression. According to Matt Freedman, the “option was axed for the reason that it’s better to enable compression on the server, rather than through WordPress.”
This is probably true because the option was turning on php compression instead of setting it in apache. However, it was still a surprise to realize my site was no longer being compressed.
To remedy the problem, I added the following to my .htaccess file in the root directory:
Header append Vary Accept-Encoding
This is the code for Apache 2.0 as suggested by Ryan Williams. Similar code for Apache 1.3 can be found.
The main point is the if you used to rely on WordPress 2.5’s gzip option, you’re going to need to find an alternate solution.
3 thoughts on “WordPress 2.5 Removes GZIP Option”
Well, that was a trip, another Ryan Williams out here on the ‘ol ‘interwebs. Funny.
Thanks for the tip too.
Lol. Yeah, I thought it was you at first as well. I almost wrote (no, not THAT Ryan Williams).
Comments are closed.