Why does Google Page-Speed say that elements need compressing, when they already are compressed?
Posted
by
Peter Snow
on Stack Overflow
See other posts from Stack Overflow
or by Peter Snow
Published on 2012-03-27T05:26:14Z
Indexed on
2012/03/27
5:29 UTC
Read the original article
Hit count: 205
My page is compressed using the following in .htaccess
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
Yslow says that the page and specifically the elements which Page-Speed is complaining about, are compressed and it gives the page an overall score of 90/100.
Why then, does Page-Speed say that
Compressing the following resources with gzip could reduce their transfer size by 118.8KiB (70% reduction).
and it gives the page an overall score of 33/100?
© Stack Overflow or respective owner