Use Compression Rules to customize the compression applied to responses from Cloudflare’s global network to your website visitors, based on the file extension and content type. Compression Rules are powered by the .
When there is a match for a compression rule configured with several compression algorithms, the selected algorithm is the first one supported by the website visitor, according to the received
accept-encoding HTTP header. If multiple compression rules match, the last rule wins.
Follow the instructions in the following pages to get started:
Compression Rules are available to Enterprise customers.
Number of rules
The following fields are commonly used in expressions of compression rules:
If there is a match for a compression rule but the client does not support any of the compression algorithms configured in the rule (according to the provided
Accept-Encodingrequest header), the response sent to the client will not be compressed.
If there is a match for a compression rule but the response sent from the origin server contains a
cache-control: no-transformHTTP header, the compression rule will not perform any changes to the response.