Enable brotli and disabling deflate
We've been using deflate and have an include where it enables gzip with deflate globally for all sites on all our servers.
Should we remove this include from per-virtualhost as brotli is being used be default now - will it not cause duplicate compression if we leave the deflate(gzip) include in include editor still?
Thanks for advice.
-
Brotli gives slightly faster decompression than deflate. Use only one to avoid conflicts and double CPU work 0 -
I enabled brotli via Easyapache and tested it. I get on brotli test sites that it is support and headers how that to with "br" However if I use a tool like gtmetrix it gives me a rating of [0] saying compression is not enabled. Does this not mean I should leave deflate on aswell? I'm thinking brotli only works for SSL requests only. 0 -
Per their blog gtmetrix does not see brotli compression: Recommendations Update They're only recognizing gzip compressed pages, brotli works on both http/https sites you'd just need to be utilizing a tool that recongnizes it. Brotli Test, Brotli Compression Test | IPVoid may be an option You can use a curl request to check brotli is working, such as the following: curl -I -H 'Accept-Encoding: br' http://domain.com
0 -
I tested it on a site using PHP7.3 seems its not available on that version yet? I know its integrated in Apache but on PHP there is also an extension that is required. So I guess its not yet available for PHP 7.3.11? curl -I -H 'Accept-Encoding: br' vary: User-Agent content-type: text/html; charset=UTF-8 0
Please sign in to leave a comment.
Comments
4 comments