Cloudflare

Introducing Cache Response Rules

Jul 23, 2026Alex Krivit, Anthony Turcios
Introducing Cache Response Rules
SummaryAI, from the source post

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