Example
When incoming requests match
-
Custom filter expression:
- Media Type equals
image/avif
OR - File extension equals
avif
- Media Type equals
Then
- Compression options > Disable compression
The following example rule will disable compression for AVIF images, based on either the content type or the file extension specified in the request.
Example
When incoming requests match
Custom filter expression:
image/avif
ORavif
Then
The following example sets the rules of an existing entry point ruleset (with ID {ruleset_id}
) for the http_response_compression
phase to a single compression rule, using the Update a zone ruleset operation: