Skip to content

Commit c0f8405

Browse files
also pass shouldBypassTagCache flag on r2 hits
1 parent 49cd870 commit c0f8405

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cloudflare/src/api/overrides/incremental-cache/regional-cache.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ class RegionalCache implements IncrementalCache {
111111
);
112112
}
113113

114-
return cachedResponse.json();
114+
return {
115+
...cachedResponse.json(),
116+
shouldBypassTagCache: this.#bypassTagCacheOnCacheHit,
117+
};
115118
}
116119

117120
const rawEntry = await this.store.get(key, cacheType);

0 commit comments

Comments
 (0)