In Performance > Browsercache there are options. Search “Enable HTTP (brotli) compression “
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?
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.
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/
date: Fri, 15 Feb 2019 21:11:21 GMT
link: <https://www.globecar.io/en/wp-json/>; rel=”https://api.w.org/”, <https://wp.me/PaiT2D-1k>; rel=shortlink
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.
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!!!
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.
- The topic ‘Brotli’ is closed to new replies.