I enabled gzip compression on my website, and tested with the following tools:
- http://www.whatsmyip.org/http_compression/
- http://www.gidnetwork.com/tools/gzip-test.php
- http://web-sniffer.net/
Though, Firefox and all its extensions (Firebug, Yslow and Google Page Speed) say they receive noncompressed content.
text/html is compressed by php's ob_gzhandler, which cares about headers as well.
I don't use proxy.
What am I doing wrong?
Best Answer
That's not really the answer you might expect, but did you try not compressing out data with PHP, but with Apache ?
This can be done use
mod_deflate
.Couple of things :
As a sidenote : to help us figure out what's going wrong with the compression by PHP, could you give more informations ? Like the URL of your site (if it's public), and some code ?
EDIT now that we have the URL : http://ego.pestaa.hu/
When I go to that page, the response's headers are as follow :
(using firefox 3.5 with LiveHTTPHeaders extension)
The three testing sites you indicated also say that your page is gzipped.
Did you find what the problem was ?
Are you sure this is not something coming from your browser, that would not send the following header in the request :
EDIT after other answer
Quote from the comments :
Oh, if the problem is not your website, I think I totally mis-understood the question -- sorry about that :-( I thought you didn't know how to server gzipped content from your website.
And I think I'm not the only one, btw
If the problem has nothing to do with your website's configuration, then, two possibilities :
about:config
, what does thenetwork.http.accept-encoding
say ? For me, it'sgzip,deflate