Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the deflate module enabled, it shows up in apachectl -t -D DUMP_MODULES, the config files are in the right place and some gzip testing tools say that it is enabled.

The only problem is the compressed size is the same as the uncompressed size (using curl --compressed -I http://www.site.com and curl -I http://www.site.com).

I'm running out of things to test. As far as I can see it should be working.

Can anyone help?

share|improve this question

2 Answers 2

I recommend use Tamper Data Firefox plugging to debug. In it, you can see all HTTP headers and compare with the mod_deflate directives. Probably mod_deflate configuration error.

Also try log compression ratios:

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio

LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate_log deflate
share|improve this answer
up vote 1 down vote accepted

PHP and Apache were fighting it out for compression.

I changed php.ini to:

output_buffering = Off

zlib.output_compression = Off

and compression works fine now.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.