Cloudflare Docs
Cache
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Cache Rules

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.

​​ Availability

The following table describes Cache Rules availability per plan.

FreeProBusinessEnterprise

Availability

YesYesYesYes

Number of rules

102550125

​​ Troubleshooting

When troubleshooting cache rules, use Cloudflare Trace Beta to determine if a rule is triggering for a specific URL.