Learn about gzip and brotli compression to help site owners.
What will Cloudflare compress?
Cloudflare will return gzip or brotli encoded responses to compatible clients / browsers for the following content-types:
If you do not want a particular response from your origin to be encoded, you can disable this by setting
cache-control: no-transform at your origin web server.
Enable Brotli compression
By default, Brotli is enabled for domain on Free and Pro plans and disabled for domains on Business and Enterprise plans.
- Log in to your Cloudflare account.
- Choose the appropriate domain.
- Click the Speed app.
- Click the Optimization tab.
- Toggle the Brotli switch to On.