Hey guys,
Brotli Compression is disabled by default but we can use it by renaming /nginx/conf.d/brotli.conf.disabled
to brotli.conf
and restart the NGINX web server. I did the same to use the Brotli Compression on my sites but facing some weird issue where some Content Types aren't being compressed by Brotli but gzip.
Only text/html
is being compressed while CSS and JS are still having content-encoding: gzip
. I am using the latest version of WordOps, NGINX, PHP 7.4 with --wprocket
flag.
Is anyone here using Brotli Compression and able to get the CSS, JS files compressed through it on the frontend? I think it's due to some Brotli Configuration but still, I would like to know how others are doing so that I can look into other conflicts.
Thanks