AI Briefing
KO

Introducing Cache Response Rules

·2026.07.24 03:40

Key point

Cloudflare has launched Cache Response Rules, which allow headers to be modified at the stage after the origin response but before it is stored in the cache.

Details

Cache Response Rules is a new rule type that runs after the origin server's response arrives at Cloudflare, but before it is written to the cache. Previously, if the origin sent back an incorrect Set-Cookie or Cache-Control: no-cache header, the content would become uncacheable, lowering cache hit rates and increasing origin costs.

With this rule, the following tasks can be handled at the Cloudflare level without modifying origin code:

  • Rewriting Cache-Control directives
  • Removing Set-Cookie, ETag, Last-Modified headers
  • Managing cache tags

Cache Response Rules is an extension of Cache Rules, which was previously split off from Page Rules, and its key differentiator is that it operates at the response stage rather than the request stage. It can be configured in the Rules section of the Cloudflare dashboard and supports expression-based matching.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.