Support » Plugin: WP-Optimize - Clean, Compress, Cache. » GZip Compression issues

  • Resolved Jason Ryan

    (@viablethought)


    Hello –

    Now with the ability to enable Gzip compression directly within the plugin and not having to manually add the code every time (thank you for this), I am running into issues on a couple sites where I am receiving the following message:

    We successfully added Gzip compression settings into .htaccess file. However, the test file we fetched was not Gzip-compressed. Possible causes include that Apache (your webserver) is not configured to allow .htaccess files to take effect, or one of Apache modules – mod_filter or mod_deflate – is not active, or the webserver is configured to disallow Gzip compression. You should speak to your web hosting support to find how to enable it.

    Now, here’s the thing. When I see this message, it is a site on our dedicated server that has a few other sites on it with similar setups (all using cloudflare), where enabling Gzip on one site works fine, others I am seeing this message, even though it is the same server and same setup? Why would this be happening? Is it an issue with cloudflare maybe? The sites are using PHP 7.2 and mod_filter or mod_deflate are definitely active on all accounts, and .htaccess is definitely allow to take effect.

    Any insight would be greatly appreciated.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Marc Lacroix

    (@marcusig)

    Hello Jason,

    WP-Optimize checks the GZIP status by downloading the current theme’s style.css. Cloudflare could be serving a non gziped cached version of the file.

    Could you provide a link to one of the websites you’re mentioning?

    @marcusig

    Sure, this was the last one I tried to enable it and got that message:

    https://www.kollerlawfirm.com/

    Thanks

    Plugin Support Marc Lacroix

    (@marcusig)

    I can confirm that the result you’re seeing is due to Cloudflare. But there isn’t actually any issue, because the files are served by cloudflare and use a different compression, which is at least as good (and probably better) than gzip: Brotli.

    We should actually update our message to something different when users have cloudflare setup.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.