Smaller HTML, JS and CSS
Brotli typically beats Gzip on text without changing the source files.
Compress eligible HTML, JavaScript, CSS and other text assets. Verify the content encoding returned to clients with different compression support.
Cloud CDN applies Brotli and Gzip for eligible text responses. Clients get the encoding they support. Already-compressed images and binaries are left alone.
Brotli typically beats Gzip on text without changing the source files.
Origin can send uncompressed or Gzip; the client still sees Brotli when it asks for it.
You do not enable compression on one region only.
HTML, JS, CSS, SVG and JSON are the usual candidates.
JPEG, WebP, MP4 and zip files should not be recompressed.
Check that browsers receive br or gzip on a test hostname.
Compressed hashed assets can use long TTLs.
It can. Cloud CDN still negotiates with the client. Avoid compressing already-compressed formats.
Yes for JSON and other text API bodies that are cacheable or still pass through the edge.
Compression and HTTP/3 stack. See the HTTP/3 CDN page.
Use path-specific behaviour when a client cannot handle encoded responses. Most browsers can.