Skip to content

Disable compression for AVIF images

Create a compression rule to turn off compression for AVIF images, based on either the content type or the file extension specified in the request.

The following example rule will disable compression for AVIF images, based on either the content type or the file extension specified in the request.

When incoming requests match

  • Custom filter expression:

    • Media Type equals image/avif OR
    • File extension equals avif

Then

  • Compression options > Disable compression