Ready to get started?Download WordPress


W3 Total Cache
JQuery not Gzipping (3 posts)

  1. Goose
    Posted 2 years ago #

    When running tests on my site using gtmetrix.com it is detecting that certain JS files are not being gzipped. I had to turn off minify JS for the time being as it was conflicting with a commercial plugin (Pippity) but I am trying to at least get the big jQuery JS file to gzip. Gtmetrix says that this will save 50k+. Here is what W3 has in my .htaccess for mod_deflate:

    <IfModule mod_deflate.c>
    <IfModule mod_setenvif.c>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon

    Is there something that needs to be tweaked in here to make sure that the JS files get gzipped? Thanks in advance.


  2. cyonite
    Posted 2 years ago #

    If you run compability check does it say that deflate, zip and such is installed?
    If everything is installed you can submit a bug submission form from the Support page in the plugin.

  3. Frederick Townes
    Plugin Author

    Posted 2 years ago #

    In order to minify files on some rare cases the files would need to be minified.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic