---
title: Examples · Cloudflare Rules docs
lastUpdated: 2024-08-22T18:02:52.000Z
source_url:
  html: https://pedro-2025-04-30-update-block-lang.preview.developers.cloudflare.com/rules/compression-rules/examples/index.md
  md: https://pedro-2025-04-30-update-block-lang.preview.developers.cloudflare.com/rules/compression-rules/examples/
---

[Disable Brotli compression](https://developers.cloudflare.com/rules/compression-rules/examples/disable-all-brotli/)

Create a compression rule to turn off Brotli compression for all incoming requests of a given zone.

[Disable compression for AVIF images](https://developers.cloudflare.com/rules/compression-rules/examples/disable-compression-avif/)

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.

[Enable Zstandard compression for default content types](https://developers.cloudflare.com/rules/compression-rules/examples/enable-zstandard/)

Create a compression rule to turn on Zstandard compression for response content types where Cloudflare applies compression by default.

[Use Gzip compression for CSV files](https://developers.cloudflare.com/rules/compression-rules/examples/gzip-for-csv/)

Create a compression rule to set Gzip compression as the preferred compression method for CSV files.

[Use only Brotli compression for a specific path](https://developers.cloudflare.com/rules/compression-rules/examples/only-brotli-url-path/)

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