<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk" -->

---
title: Cloudflare Introduces Cache Response Rules for...
description: Cloudflare has launched Cache Response Rules, a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare&#x27;s...
canonical: https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control | daily.dev
og:description: Cloudflare has launched Cache Response Rules, a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare&#x27;s...
og:url: https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk
og:image: https://api.daily.dev/og/posts/nplkOsNPk.png
og:image:alt: Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control

**[InfoQ](https://daily.dev/sources/infoq)** · 3 min read · 0 upvotes · 0 comments

## Summary

Cloudflare has launched Cache Response Rules, a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare's cache. Unlike existing Cache Rules, which only evaluate request attributes before contacting the origin, the new response-phase rules let teams modify Cache-Control directives, manage cache tags, and strip interfering headers like Set-Cookie, ETag, and Last-Modified without touching origin code. The goal is to fix accidental cache misses caused by stray headers, improving cache hit ratios and reducing origin bandwidth costs. The feature is available on all Cloudflare plans, and practitioners have noted both its value for fixing origin mistakes at the edge and risks if dynamic content is mistakenly marked cacheable.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoq.com/news/2026/08/cloudflare-cache-rules>

## Questions this post answers

### What are Cloudflare Cache Response Rules and how do they differ from Cache Rules?

Cache Response Rules are a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare's cache, letting teams modify Cache-Control directives, manage cache tags, and strip headers like Set-Cookie, ETag, and Last-Modified. Existing Cache Rules only evaluate request attributes before contacting the origin, deciding whether and how to look up cached content; Cache Response Rules instead get the final say after seeing the origin's actual response, and the two features are meant to work together rather than replace one another.

_Teams tuning CDN cache hit rates can follow caching architecture changes like this on daily.dev._

### How can a stray Set-Cookie header hurt Cloudflare cache hit ratio?

A stray Set-Cookie header on an origin response can make an asset that should be cacheable at every Cloudflare data center become uncacheable, forcing every visitor's request back to origin. Multiplied across every site and visitor with the same accidental header, this leaks origin bandwidth, degrades performance, and raises infrastructure costs. Cache Response Rules let teams strip such headers after the origin responds, without changing the origin application.

_Developers debugging unexpected cache misses can track fixes like this on daily.dev._

### Which Cloudflare plans include Cache Response Rules?

Cache Response Rules are available across all Cloudflare plans, supporting three actions: removing headers that interfere with caching, managing cache tags, and modifying Cache-Control directives. This response-phase control operates after the origin server replies but before content is stored in Cloudflare's cache, complementing the existing request-time Cache Rules.

_Anyone evaluating CDN feature availability across plans can follow updates like this on daily.dev._

## Similar posts on daily.dev

- [Introducing Cache Response Rules](https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh) · Cloudflare · 6 upvotes · 0 comments
- [We just shipped support for the ugliest part of HTTP: Vary](https://daily.dev/posts/we-just-shipped-support-for-the-ugliest-part-of-http-vary-3se6wpo1c) · Cloudflare · 1 upvotes · 0 comments
- [A complete guide to HTTP caching](https://daily.dev/posts/a-complete-guide-to-http-caching-glkmld7xp) · Programming Digest · 97 upvotes · 3 comments
- [Vercel CDN now respects cache-control headers from external origins by default](https://daily.dev/posts/vercel-cdn-now-respects-cache-control-headers-from-external-origins-by-default-8plwagtqs) · Vercel · 1 upvotes · 0 comments
- [HTTP caching, a refresher · Dan Cătălin Burzo](https://daily.dev/posts/http-caching-a-refresher-dan-c-t-lin-burzo-amcxrpvap) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#cloudflare](https://daily.dev/tags/cloudflare), [#edge-computing](https://daily.dev/tags/edge-computing)

[View this post on daily.dev](https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control","url":"https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk"},"datePublished":"2026-08-15T06:41:19.915Z","dateModified":"2026-08-15T06:41:45.099Z","description":"Cloudflare has launched Cache Response Rules, a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fe611592cc0993aad0d5bbb45bba563?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fe611592cc0993aad0d5bbb45bba563?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoQ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoQ","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/afc3bced3e1e4b188dd9127017a60e0c","url":"https://daily.dev/sources/infoq"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cloudflare,edge-computing","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoQ","item":"https://daily.dev/sources/infoq"},{"@type":"ListItem","position":3,"name":"Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk#faq","mainEntity":[{"@type":"Question","name":"What are Cloudflare Cache Response Rules and how do they differ from Cache Rules?","acceptedAnswer":{"@type":"Answer","text":"Cache Response Rules are a new rules engine phase that runs after an origin server responds but before content is written to Cloudflare's cache, letting teams modify Cache-Control directives, manage cache tags, and strip headers like Set-Cookie, ETag, and Last-Modified. Existing Cache Rules only evaluate request attributes before contacting the origin, deciding whether and how to look up cached content; Cache Response Rules instead get the final say after seeing the origin's actual response, and the two features are meant to work together rather than replace one another. Teams tuning CDN cache hit rates can follow caching architecture changes like this on daily.dev."}},{"@type":"Question","name":"How can a stray Set-Cookie header hurt Cloudflare cache hit ratio?","acceptedAnswer":{"@type":"Answer","text":"A stray Set-Cookie header on an origin response can make an asset that should be cacheable at every Cloudflare data center become uncacheable, forcing every visitor's request back to origin. Multiplied across every site and visitor with the same accidental header, this leaks origin bandwidth, degrades performance, and raises infrastructure costs. Cache Response Rules let teams strip such headers after the origin responds, without changing the origin application. Developers debugging unexpected cache misses can track fixes like this on daily.dev."}},{"@type":"Question","name":"Which Cloudflare plans include Cache Response Rules?","acceptedAnswer":{"@type":"Answer","text":"Cache Response Rules are available across all Cloudflare plans, supporting three actions: removing headers that interfere with caching, managing cache tags, and modifying Cache-Control directives. This response-phase control operates after the origin server replies but before content is stored in Cloudflare's cache, complementing the existing request-time Cache Rules. Anyone evaluating CDN feature availability across plans can follow updates like this on daily.dev."}}]}
```

