• Resolved Umberto

    (@umberto69)


    Hi,

    while configuring the plugin i noticed that the “Enable HTTP (brotli) compression” option was grayed out.

    SCREENSHOT

    I then contacted my hosting provider, who assured me that Brotli compression was detected correctly:

    ? curl -s -I -H 'Accept-Encoding: br' https://www.esserevegan.it |grep -i "Content-Encoding"
    content-encoding: br

    How can I solve it?

    Regards
    Umberto

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @umberto69

    Thank you for reaching out and I am happy to help!

    I’ve checked yoru website and indeed I can see content-encoding: br header. This means that Brotli is enabled outside of the W3 Total Cache, meaning either on a server level (nginx.conf) of you are using another plugin for this.

    This being said, the W3 Total Cache detects the php module so if you want to use Brotli only with W3 Total Cache (Please make sure to use only one solution for this), you should make sure to install phpbrotli: https://github.com/kjdev/php-ext-brotli

    Also, the br compression is enabled on your end for static files like JS and CSS, however, it’s not enabled for the HTML&XMK, so please chceck with your hosting provider the content of the configuration file and make sure to enable it for the HTML also, if you dont want to install the php module.

    Thanks!

    Thread Starter Umberto

    (@umberto69)

    Hi,

    thanks for the info. I contacted my hosting provider and they replied:

    “The Brotli compression is already enabled by default on all of our servers and is fully active for your website, it is also correctly working for HTML and XML files, as seen in the tests below.

    ivaylo.stoyanov@Ivaylo-Stoyanov ~ % curl -s -I -H 'Accept-Encoding: br' https://www.esserevegan.it/index.html |grep -i "Content-Encoding"
    content-encoding: be

    ivaylo.stoyanov@Ivaylo-Stoyanov ~ % curl -s -I -H 'Accept-Encoding: br' https://www.esserevegan.it/tid4708385.xml |grep -i "Content-Encoding"
    content-encoding: be

    This can also be confirmed through third-party tests such as the ones that you can perform on the below websites.

    https://tools.keycdn.com/brotli-test

    https://toolsaday.com/seo/check-gzip-compression

    Since Brotli is already active on our server, you do not need to attempt to enable it from the W3 Total Cache plugin as well, there will be no point in doing so as this compression is already active on a server level through an Nginx module on our server, hence enabling it through a PHP module via the third-part plugin is redundant.

    Regards
    Umberto

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @umberto69

    Thank you for your confirmation

    If you already have Brotli enabled on a server level, you do not need to do this in the W3TC as per your hosting support suggestion.

    Thank you!

    Thread Starter Umberto

    (@umberto69)

    Ciao,

    Ok, grazie!

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