Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d7a40f2

Browse files
rdaniels6813mrbbot
andauthored
fix: update cache policy to use static 200 for 429 & 503 (#669)
* fix: update cache policy to use static 200 for 429 & 503 * Delete spotty-papayas-decide.md --------- Co-authored-by: MrBBot <[email protected]>
1 parent 9f64855 commit d7a40f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cache/src/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function getExpirationTtl(
8787
headers: reqHeaders,
8888
};
8989
const cacheRes: CachePolicy.Response = {
90-
status: res.status,
90+
status: res.status === 429 || res.status === 503 ? 200 : res.status,
9191
headers: resHeaders,
9292
};
9393

0 commit comments

Comments
 (0)