Use Cache Rules to customize cache settings on Cloudflare. Cache Rules allows you to make adjustments to what is eligible to cache, how long it should be cached and where, as well as trigger specific interactions with Cloudflare's cache and other Rules products for matching requests.
Cache Rules can be created in the dashboard, via API or Terraform.
Notes
Cache Rules require that you proxy the DNS records of your domain (or subdomain) through Cloudflare.
Rules can be versioned. Refer to the Version Management documentation for more information.
Cloudflare provides you with rules templates for common use cases. In the dashboard, go to your zone > Rules > Overview, select Templates, and then select one of the available templates. You can also refer to the Examples gallery in the developer docs.
The following table describes Cache Rules availability per plan.
Free Pro Business EnterpriseAvailability
Yes
Yes
Yes
Yes
Number of rules
10 25 50 300When troubleshooting Cache Rules, use Cloudflare Trace to determine if a rule is triggering for a specific URL.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4