<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh" -->

---
title: Introducing Cache Response Rules | daily.dev
description: Cloudflare has launched Cache Response Rules, a new rule type that runs after an origin server replies but before the response is written to Cloudflare&#x27;s...
canonical: https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing Cache Response Rules | daily.dev
og:description: Cloudflare has launched Cache Response Rules, a new rule type that runs after an origin server replies but before the response is written to Cloudflare&#x27;s...
og:url: https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh
og:image: https://api.daily.dev/og/posts/WAlWdKvfH.png
og:image:alt: Introducing Cache Response Rules
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.

# Introducing Cache Response Rules

**[Cloudflare](https://daily.dev/sources/cloudflare)** · 13 min read · 6 upvotes · 0 comments

## Summary

Cloudflare has launched Cache Response Rules, a new rule type that runs after an origin server replies but before the response is written to Cloudflare's cache. This fills a long-standing gap: problems like stray Set-Cookie headers on static assets, incorrect Cache-Control directives, or misconfigured ETags couldn't be fixed at request time. Cache Response Rules support three actions: stripping headers (Set-Cookie, ETag, Last-Modified) that break caching, managing cache tags (including translating surrogate keys during CDN migrations), and modifying Cache-Control directives with a cloudflare_only flag to decouple CDN and browser cache lifetimes. The feature complements existing Cache Rules (which operate on requests) and is available on all Cloudflare plans via the dashboard or API.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.cloudflare.com/introducing-cache-response-rules>

## Similar posts on daily.dev

- [Cloudflare Introduces Cache Response Rules for Post-Origin Cache Control](https://daily.dev/posts/cloudflare-introduces-cache-response-rules-for-post-origin-cache-control-nplkosnpk) · InfoQ · 0 upvotes · 0 comments
- [A complete guide to HTTP caching](https://daily.dev/posts/a-complete-guide-to-http-caching-glkmld7xp) · Programming Digest · 98 upvotes · 3 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)

[View this post on daily.dev](https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh)

```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":"Introducing Cache Response Rules","url":"https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh"},"datePublished":"2026-07-23T18:42:22.634Z","dateModified":"2026-07-23T22:31:37.530Z","description":"Cloudflare has launched Cache Response Rules, a new rule type that runs after an origin server replies but before the response is written to Cloudflare's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f35b1cc96cb0ed510c4fb819b2d9ff6a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f35b1cc96cb0ed510c4fb819b2d9ff6a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Cloudflare","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":"Cloudflare","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/38522e1d11354cd6b7af66f9d4316735","url":"https://daily.dev/sources/cloudflare"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-cache-response-rules-walwdkvfh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cloudflare","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cloudflare","item":"https://daily.dev/sources/cloudflare"},{"@type":"ListItem","position":3,"name":"Introducing Cache Response Rules"}]}
```

