Cache Management
Introducing Cache Rules: precision caching at your fingertips

Introducing Cache Rules: precision caching at your fingertips

9/27/2022 · Alex Krivit

What this post added

Introduced Cache Rules as a successor to Page Rules for cache management. Cache Rules allow for more granular control over caching by matching on URL, HTTP request headers (e.g., content-type, cookies, user-agents, hostnames), and file types, with support for AND/OR operators. This provides enhanced flexibility and precision compared to the URL-only matching of Page Rules. The post also highlights the separation of Page Rules into four distinct rule sets (Origin Rules, Cache Rules, Configuration Rules, Redirect Rules) to improve clarity and reduce debugging time. Increased visibility into rule application precedence and interaction with other Cloudflare products is a key improvement. Cache Rules are available in beta via API, Terraform, or UI.

Read the original post ↗