Skip to content

Commit bf2fa2d

Browse files
committed
chore: revert response cache change
1 parent b88cd64 commit bf2fa2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ export class DefaultDelegatedRoutingV1HttpApiClient implements DelegatedRoutingV
397397
const key = `${requestMethod}-${url}`
398398

399399
// Only try to use cache for GET requests
400-
if (requestMethod === 'GET' && this.cache != null) {
400+
if (requestMethod === 'GET') {
401401
const cachedResponse = await this.cache?.match(url)
402-
if (cachedResponse?.ok === true) {
402+
if (cachedResponse != null) {
403403
// Check if the cached response has expired
404404
const expires = parseInt(cachedResponse.headers.get('x-cache-expires') ?? '0', 10)
405405
if (expires > Date.now()) {

0 commit comments

Comments
 (0)