wordpressgzipcloudflarebrotli

Can I use Cloudflare's Brotli along with GZIP Included in my .htaccess File?


I would like to know if I could use Brotli compression provided by Cloudflare along with GZIP compression included in my .htaccess file? Would there be any reasons any one of you would not recommend doing that?

Best regards,

Tug


Solution

  • Yes, you can use Brotli in combination with GZIP, however that does not mean it will use Brotli+GZIP... depending on situation and configuration of your server it will decide what to do. For example your server will deliver GZIP compressed output to Cloudflare... but cloudflare will detect that and just deliver that file to end user without any Brotli compression.. OR it will simply uncompress GZIP and do Brotli compression.