• Hello,

    I am using wordpress 4.5.1 along and am trying to enable GZIP compression through W3 total cache.

    After going through multiple forms and articles I could not get my Page Speed rating above a 68%, oddly enough i tried using WordPress GZIP Compression plugin along with W3 and it shot my score to a 90% Page Speed and 99% YSlow.

    Now i am completely fine with keeping it this way because of the results however i have received an error message on my wordpress admin panel warning me that the 2 plugins are not compatible.

    Does anyone have some thoughts into why compression was not working with W3 and what I need to do to enable this to get the compression working properly?

    Thanks!

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Depends on your server. It might be because your server isn’t offering the feature. I assume you’ve tried adding the necessary details in your htaccess file with no luck which is why you turned to the WordPress Gzip plugin? I’d provide sample code (for htaccess) but i get a sense you did try already.

    Do you know what server software is being used? Apache? LiteSpeed? NGINX?

    Have you contacted support to see if the server supports gzip output?

    Thread Starter tjkidder12

    (@tjkidder12)

    Thank you for the response Kimberly!

    So i found out our Apache 2 servers actually uses mod_deflate, which calls gzip on the back end automatically. I supposed this might be the issue on why it is incompatible with W3 and why i needed to bring in another plugin?

    When you try placing the following into your .htaccess file does gzip still not work?

    <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>

    alternatively, also try:

    <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
     AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml application/xml-dtd
     AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
     AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
     AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
     AddOutputFilterByType DEFLATE font/truetype font/opentype
    </IfModule>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gzip Compression’ is closed to new replies.