WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
GZIP working now? (9 posts)

  1. johnflufin
    Member
    Posted 2 years ago #

    I have previously had problems with CSS and JS GZIP compression working properly. I was plagued by the missing "gzip" extension problem which resulted in the site being unstyled in certain browsers. For example it would output "style.css." (note the extra "." on the end) instead of "style.css.gzip".

    I just did some testing after upgrading to WP 3.3.1, deactivated and uninstalled W3TC, reinstalled W3TC 0.9.2.4. Now GZIP appears to be working according to webpagetest.org and another similar site. Although there is not a "gzip" extension on the css files. For example it now outputs "style.css" (no extra period) instead of "style.css.gzip".

    Can anyone please confirm if this new behavior is correct?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. johnflufin
    Member
    Posted 2 years ago #

    Just tested with YSlow and it reports that the CSS and JS files are not GZIP compressed. The W3TC GZIP settings appear to be enabled. What am I doing wrong?

  3. Pothi
    Member
    Posted 2 years ago #

    Just tested with YSlow and it reports that the CSS and JS files are not GZIP compressed. The W3TC GZIP settings appear to be enabled. What am I doing wrong?

    Please post your site URL or the test results from webpagetest.org. You may also check your site with gtmetrix and post the test result to confirm if the compression is working at the moment.

  4. johnflufin
    Member
    Posted 2 years ago #

    Pothi - Thanks for the GTMetrix tip

    GTMetrix scored 100 on "Enable gzip compression". Interestingly YSlow via GTMetrix also scored 100 on "Compress components with gzip" and 84 overall despite my previous YSlow test via Firefox + Firebug + YSlow (F on "Compress components with gzip" and 78 overall score). Weird. This makes me wonder if this is a browser issue (Firefox).

    In any case, shouldn't there be a ".gzip" extension on gzipped files? Maybe I'm misunderstanding of how GZIP works.

    Thoughts?

  5. Pothi
    Member
    Posted 2 years ago #

    In any case, shouldn't there be a ".gzip" extension on gzipped files? Maybe I'm misunderstanding of how GZIP works.

    No, no. There shouldn't be any ".gzip" extension on gzipped files. The compression happens on the fly.

    For your previous questions...

    I just did some testing after upgrading to WP 3.3.1, deactivated and uninstalled W3TC, reinstalled W3TC 0.9.2.4. Now GZIP appears to be working according to webpagetest.org and another similar site. Although there is not a "gzip" extension on the css files. For example it now outputs "style.css" (no extra period) instead of "style.css.gzip".

    Can anyone please confirm if this new behavior is correct?

    I can confirm this is the correct behavior.

    Finally, I trust WebPageTest.org and GTMetrix than any other tool. If you still wonder if compression really happens, check out this site... http://web-sniffer.net/ It may look little complicated, but a nice tool to do a quick check.

  6. johnflufin
    Member
    Posted 2 years ago #

    Awesome, thanks Pothi.

    Also, I just remembered where I was checking for the ".gzip" extension... the W3TC "min" cache directory. Looks like the CSS min cache is named correctly (default.include.819aac.css.gzip) but the page cache file names look odd. They're named "_index.html_gzip".

    Is this right? If so why is it "_gzip" instead of ".gzip"?

  7. Pothi
    Member
    Posted 2 years ago #

    Is this right?

    Honestly, I have no idea about how W3 Total Cache does the compression and caching.

  8. johnflufin
    Member
    Posted 2 years ago #

    I'm paranoid because of past problems but I guess I'll just trust that it's working correctly now.

    Thanks for your help.

  9. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Gzip is working because your browser cache settings have enabled mod_deflate support for them. Normally only minified files will have a compressed and non-compressed version created in the w3tc cache directory.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic