Where is Brotli?

What is the name of the domain?

What is the issue you’re encountering

I can’t find Brotli in Speed > Optimisation. Has it moved somewhere else? Thank you.)

There’s no toggle anymore. Brotli is always used if the client asks for it.

2 Likes

You can get more control of your compression options with a Compression Rule:

1 Like

GTMetrix test
I see that Brotli is enabled for HTLM files and Gzip for JS and CSS.
But I get the same result when Litespeed Cache is disabled, Cloudflare is in Development Mode and the Brotli and Gzip option is OFF in KeyCDN. So where does Brotli (and gzip) come from? Does Cloudflare use them automatically? Can I access the settings?

Cloudflare automatically chooses the best compression algorithm (Zstandard, Brotli or Gzip) based on the end-user’s / client’s preference and several other factors. However, if your origin server sends a cache-control: no-transform header, Cloudflare will respect that and won’t modify the compression applied upstream. More details: Content compression | Brotli · Cloudflare Speed docs.

If you want more control, you can configure Compression Rules to:

Also, keep in mind that if you’re using any Cloudflare features that require modifying the response (like Mirage, Polish, Rocket Loader, Replace insecure JS libraries, etc.), Cloudflare will decompress and then re-compress the content, regardless of upstream compression. More info here: Content compression | Brotli · Cloudflare Speed docs.

1 Like

It’s very clear, many thanks!

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.