Skip to main content

Enable brotli and disabling deflate

Comments

4 comments

  • kadrin
    Brotli gives slightly faster decompression than deflate. Use only one to avoid conflicts and double CPU work
    0
  • sahostking
    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
  • cPanelLauren
    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
  • sahostking
    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.