Introducing Cache Response Rules
Jul 23, 2026Alex Krivit, Anthony Turcios

Summary
Introduced Cache Response Rules, a new rule type that operates in the response phase after the origin replies but before caching. This allows for modification of cache behavior based on origin responses, addressing issues like Set-Cookie on static assets, misconfigured Cache-Control directives, and ETag/Last-Modified thrash. Cache Response Rules can strip specific headers (Set-Cookie, ETag, Last-Modified), manage cache tags (set, add, remove), and modify Cache-Control directives (duration, qualified, boolean). This complements existing Cache Rules which operate in the request phase.
More from the Cache Management trail
- We just shipped support for the ugliest part of HTTP: Vary
- How we could save petabytes of cache storage with Zstandard and Pingora
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- Improving Smart Tiered Cache for Public Cloud Regions
- Your Worker can now have its own cache in front of it