Skip to content

Commit 37aa7cf

Browse files
yj7o5Yawar Jamal
andauthored
CACHE-11939: add request cf overriding cache rules compat flags (#20965)
Co-authored-by: Yawar Jamal <[email protected]>
1 parent a036dac commit 37aa7cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
_build:
3+
publishResources: false
4+
render: never
5+
list: never
6+
7+
name: "Override cache rules cache settings in `request.cf` object for Fetch API"
8+
sort_date: "2023-08-01"
9+
enable_date: "2025-04-02"
10+
enable_flag: "request_cf_overrides_cache_rules"
11+
disable_flag: "no_request_cf_overrides_cache_rules"
12+
---
13+
14+
This flag changes the behavior of cache when requesting assets via the [Fetch API](/workers/runtime-apis/fetch). Cache settings specified in the `request.cf` object, such as `cacheEverything` and `cacheTtl`, are now given precedence over any [Cache Rules](/cache/how-to/cache-rules/) set.

0 commit comments

Comments
 (0)