Support » Fixing WordPress » How to enable gzip compression

  • Sona


    Hello, My blog’s load time is very high like 24 sec or more( Now I want to enable gzip to load webpage faster.
    How to do this with w3 cache plugin? I have changed value from o to 1 in option.php but still it says your blog is not compressed…
    Please expert, pour your suggestions..
    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p


    I dodn’t knowabout the plugin you mentioned, but for this purpose I use the following in my .htaccess, which works for me.

    #GZip compression
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    I see this thread in the top of the search and I must say it won’t work on the most of the webhosting servers because of the different mime-type tables.
    Check this guide how to do it properly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to enable gzip compression’ is closed to new replies.