Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have 'page compression' switched on but when I test it for compression ( at http://www.whatsmyip.org/mod_gzip_test/ ) the page in uncompressed.
This happens whether or not caching is off on on 'normal'.
I had the same problem already in Drupal 6.5.
My server does not use compression by default.
Please help.
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedThe compression will only happen when caching is on, as far as I know.
I can confirm that I'm unable to make whatsmyip.org test pass, even on Drupal site where page compression is activated and working (confirmed when watching firebug headers).
I guess there is an issue somewhere, but I don't know if it is in the tester or in Drupal :)
Comment #2
Vacilando CreditAttribution: Vacilando commentedI've tested a few different gzip testers with the following URL:
http://www.drupal.org/project/issues
* Shows NOT gzipped:
http://whatsmyip.org/mod_gzip_test/
http://www.gidnetwork.com/tools/gzip-test.php
http://get.recgr.com/gzip.php
* Shows gzipped!
http://nontroppo.org/tools/gziptest/
I now understand why that happens - most gzip testers look at the first page they get to. With clean URLs enabled, Drupal delivers redirect pages first, which are not gzipped (though they also could be, but that is another matter).
Only the last of the tested gzip testers followed the redirects until getting the proper page (what browser displays). Guess you know which one to use in the future :-)
Also, I confirm that if you use classic URLs ( in this case: http://drupal.org/index.php?q=project/issues ), the other gzip testers will work as well!
Hope this helps somebody.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
vinoth.3v CreditAttribution: vinoth.3v commentedin my case, I am confirmed this with google page speed and Yslow!
Caching enabled.
additional modules used are
boost, css gzip, js gzip
any luck?
Comment #5
vinoth.3v CreditAttribution: vinoth.3v commentedcss gzip & js gzip are working fine... but page compression is not..
Comment #6
armanschwarz CreditAttribution: armanschwarz commentedI can confirm this as well. Javascript and CSS Gzip works fine, page compression does not. Here is a sample page header from my site on a page where caching should be on (ie. no captcha present, not logged in), if that is useful:
Response Headers:
Request Headers:
My header expires in 1978; is that a problem? Wouldn't this effectively disable caching?
Comment #7
Sansui CreditAttribution: Sansui commentedI have noticed that with compression enabled, some of my pages are gzipped (including the front page and some of my main views pages), but all of my individual node pages are not showing as gzipped.
Is there anything that would prevent drupal from being able to compress certain nodes?