Viewing 7 replies - 1 through 7 (of 7 total)
  • Ramanan

    (@superpoincare)

    In Performance > Browsercache there are options. Search “Enable HTTP (brotli) compression “

    Thread Starter Will Stocks

    (@willstockstech)

    Hi @superpoincare – I’m aware of that, what I’m actually asking is how exactly you enable it if it’s greyed out (which it is for me). What are the requirements?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    It’s grayed out because you need module installed.

    You only have to install a module to support brotli in PHP and a module for NginX or Apache.
    After you do this, brotli will be available in W3 Total Cache settings.

    @vmarko, we run our website on a cPanel/WHM server and have installed mod_brotli on Apache using EasyApache 4 see: https://www.screencast.com/t/i9sS3xbE0DgW

    Yet the checkbox to enable Brotli compression is still greyed out in W3TotalCache Browser Cache window see: https://www.screencast.com/t/kcdVJsv7XU

    But Curl is showing Brotli as enabled and working:

    curl -H “Accept-Encoding: br” -I https://www.globecar.io/en/
    HTTP/2 200
    date: Fri, 15 Feb 2019 21:11:21 GMT
    server: Apache
    link: <https://www.globecar.io/en/wp-json/&gt;; rel=”https://api.w.org/&#8221;, <https://wp.me/PaiT2D-1k&gt;; rel=shortlink
    vary: Accept-Encoding,User-Agent
    content-encoding: br
    referrer-policy:
    content-length: 1
    content-type: text/html; charset=UTF-8

    Can you help?

    I too have the same issue, I’ve installed the brotli module in apache, yet returning to w3 still has the option greyed out. Running compatibility check returns this:
    brotli extension: Not installed (required for brotli compression support)

    however I can confirm the apache module is installed.

    Thread Starter Will Stocks

    (@willstockstech)

    @damianvincent and @damianvincent – I found that it only enabled for me when *both* the PHP extension *and* the Apache module were enabled.

    Having just the Apache module enabled didn’t enable the box for me. I’m not sure how I’d feel about Apache doing on-the-fly Brotli compression either to be honest… Brotli is fairly intense in terms of CPU usage and compression times when compared to GZIP.

    You also have no control over the level of Brotli compression within W3TC (something @vmarko might be able to confirm if is coming in the future)?

    I’d also like to see an option within W3TC where I can actually _store_ the Brotli version of files (such as page_cache.html, minified files etc.) so that I can use nginx’s brotli_static to serve the pre-compressed files, without having to do on-the-fly compression (I’m sure similar can be acheived in Apache as well) – it would save a _massive_ amount of overhead!!!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    You need to install Brotli php module for now https://github.com/kjdev/php-ext-brotli
    We are working on the fix to allow brotli compression for non-HTML without the PHP module.
    More improvements for Brotli will be added in future releases.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Brotli’ is closed to new replies.