W3 Total Cache CSS & JS files GZip issues

Having checked my site with google page speed and gzipwtf.com I have noticed that my css and js files are not getting compressed (although html is).

Have tried unchecking ” Prevent caching of objects after settings change ” and have thus removed query strings from these files but that has had no effect.

Read More

Have also tried adding the following (both above and below wordpress rules) in htaccess to no effect also:

# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css     application/x-javascript application/javascript
</ifmodule>
# END GZIP

Would any one have any advice as to what I may be able to do to rectify this?

Many thanks

Related posts

Leave a Reply

1 comment

  1. Thanks to @Pothi Kalimuthu I checked with my hosting company to see if mod_deflate was enabled, and it wasnt. This was the problem.

    I mistakingly believed that it was by incorrectly reading the results of phpinfo.