Cloudflare Create a Cache Response Rule in the dashboard: A Guide for Website Owners
Step-by-step instructions for Cloudflare website owners to create, target, order, deploy, or draft a Cache Response Rule in the dashboard.
Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.
To create a Cache Response Rule in Cloudflare, open the dashboard and go to Cache → Cache Rules → Cache Response Rules → Create rule. Name the rule, choose whether it applies to all incoming requests or a custom filter, select an action, set the rule order, and choose Deploy or Save as Draft.
Choose the requests the rule matches#
After naming the rule, apply it to all incoming requests or create a custom filter. Cloudflare allows filters based on request or response properties such as the hostname, URI path, status code, or response headers.
Use a custom filter when the response behavior should apply only to a defined set of requests. For example, the filter can limit the rule by hostname or URI path, or target responses with a particular status code or response header.
Choose the response action#
Cloudflare documents these Cache Response Rule actions:
| Action | Documented purpose |
|---|---|
Modify Cache-Control directives | Modify the response’s Cache-Control directives. |
| Modify cache tags | Modify the response’s cache tags. |
| Strip response headers | Strip Set-Cookie, ETag, or Last-Modified headers before Cloudflare evaluates the response for caching. |
The available labels, actions, and behaviors are specific to Cloudflare. Select the action that matches the response change you intend to make, then review the rule’s scope before saving it.
Set the order and save#
Set the rule’s order in the dashboard. Review that order with any other Cache Response Rules that may apply to the same requests.
Choose Deploy when the rule is ready to publish, or choose Save as Draft if you want to keep working on it before deployment. A hostname-based rule may prompt you to create a proxied DNS record.
Cloudflare describes its Cache service as storing copies of frequently accessed content. Creating a Cache Response Rule does not by itself promise a particular speed, availability, or caching result; the outcome depends on the selected scope, action, order, and Cloudflare’s documented caching behavior.
Sources
- Cloudflare: Create a Cache Response Rule in the dashboard Checked 2026-10-24
- Cloudflare cache documentation Checked 2026-10-24