We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88cd64 commit bf2fa2dCopy full SHA for bf2fa2d
packages/client/src/client.ts
@@ -397,9 +397,9 @@ export class DefaultDelegatedRoutingV1HttpApiClient implements DelegatedRoutingV
397
const key = `${requestMethod}-${url}`
398
399
// Only try to use cache for GET requests
400
- if (requestMethod === 'GET' && this.cache != null) {
+ if (requestMethod === 'GET') {
401
const cachedResponse = await this.cache?.match(url)
402
- if (cachedResponse?.ok === true) {
+ if (cachedResponse != null) {
403
// Check if the cached response has expired
404
const expires = parseInt(cachedResponse.headers.get('x-cache-expires') ?? '0', 10)
405
if (expires > Date.now()) {
0 commit comments