Skip to content

Use only Brotli compression for a specific path

Create a compression rule to set Brotli as the only supported compression algorithm for a specific URI path.

The following example rule will configure only Brotli compression for a specific URI path.

When incoming requests match

  • Custom filter expression:

    • URI Path equals /download/assets.tar

Then

  • Compression options: Custom
  • Define a custom order for compression types: Brotli

Since the rule configuration does not include Auto at the end of the custom algorithms list, the response will be uncompressed if the web visitor does not support Brotli.