Skip to content

Commit e1f5ea8

Browse files
authored
docs(cache): cache resposne rules support versioning (#30355)
1 parent 6d777eb commit e1f5ea8

4 files changed

Lines changed: 31 additions & 7 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Cache Response Rules now support zone versioning
3+
description: Cache Response Rules can now be versioned with Version Management, allowing you to test response-phase cache settings across environments before promoting to production.
4+
products:
5+
- cache
6+
date: 2026-04-27
7+
---
8+
9+
Cache Response Rules now work with [Version Management](/version-management/). You can version response-phase cache settings and promote them through environments, just like Cache Rules and other supported configurations.
10+
11+
## What changed
12+
13+
Previously, Cache Response Rules were excluded from zone versioning. Any response-phase rule you created applied globally across all environments with no way to test changes in staging first. Cache Rules already supported versioning, but the response phase, where you modify `Cache-Control` directives, manage cache tags, and strip headers, did not.
14+
15+
Cache Response Rules are now fully integrated with Version Management. You can create or modify response-phase rules within a version, and those changes stay scoped to that version until promoted.
16+
17+
## Benefits
18+
19+
- **Safe rollout of cache behavior changes**: Test response-phase rules in a staging environment before promoting to production. Catch unintended caching side effects early.
20+
- **Parity with Cache Rules**: Cache Response Rules now follow the same versioning workflow as Cache Rules, so you can manage all cache configuration through a single promotion pipeline.
21+
- **Independent environment control**: Run different response-phase cache settings per environment. For example, strip `Set-Cookie` headers in staging to validate cacheability without affecting production traffic.
22+
23+
## Get started
24+
25+
Configure Cache Response Rules in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules) under **Caching** > **Cache Rules**, or via the [Rulesets API](/ruleset-engine/rulesets-api/). For more details, refer to the [Cache Response Rules documentation](/cache/how-to/cache-response-rules/) and the [Version Management documentation](/version-management/).

src/content/docs/cache/how-to/cache-response-rules/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ In this case, the Cache Response Rule takes precedence. Cloudflare caches the as
6363

6464
- If you strip last modified then Smart Edge Revalidation will be turned off.
6565
- Cache Response Rules ignore [`1xx` HTTP response status codes](/support/troubleshooting/http-status-codes/1xx-informational/) as they are treated as informational responses.
66-
- Currently, Cache Response Rules do not work with [Version Management](/version-management/).
66+
- Cache Response Rules can be versioned. Refer to the [Version Management](/version-management/) documentation for more information.

src/content/partials/version-management/product-limitations.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ Version Management does not currently support or have limited support for the fo
3434

3535
</Details>
3636

37-
<Details header="Cache Response Rules">
38-
39-
- [Cache Response Rules](/cache/how-to/cache-response-rules/) do not work with Version Management.
40-
41-
</Details>
42-
4337
<Details header="Workers Cache API">
4438

4539
- [Workers Cache API](/workers/runtime-apis/cache/) does not work with Version Management.

src/content/release-notes/version-management.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ link: "/version-management/changelog/"
33
productName: Version Management
44
productLink: "/version-management/"
55
entries:
6+
- publish_date: "2026-04-27"
7+
title: "Support for Cache Response Rules"
8+
description: |-
9+
- Version Management now supports versioning for [Cache Response Rules](/cache/how-to/cache-response-rules/).
10+
611
- publish_date: "2024-02-26"
712
title: "Support for API Shield"
813
description: |-

0 commit comments

Comments
 (0)