Enable Brotli
By default, Brotli compression is enabled for domains on Free and Pro plans and disabled for domains on Business and Enterprise plans.
To enable Brotli compression:
- Log in to the Cloudflare dashboard, and select your account and website.
- Go to Speed > Optimization > Content Optimization.
- For Brotli, toggle the switch to On.
Notes about end-to-end compression
Even when using the same compression algorithm end to end (between your origin server and Cloudflare, and between the Cloudflare global network and your website visitor), Cloudflare will need to decompress the response and compress it again if you enable any of the following options for the request:
- Email Address Obfuscation
- Rocket Loader
- Server Side Excludes (SSE)
- Mirage
- HTML Minification (you can minify JavaScript and CSS without any impact)
- Automatic HTTPS Rewrites
- Polish
To disable these features for specific URI paths, create a Configuration Rule.
Additionally, Cloudflare Fonts also requires Cloudflare to decompress the response and compress it again, and cannot be disabled through Rules at this time.