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 16df06c commit f9bce42Copy full SHA for f9bce42
packages/client/src/client.ts
@@ -397,7 +397,7 @@ export class DefaultDelegatedRoutingV1HttpApiClient implements DelegatedRoutingV
397
const key = `${requestMethod}-${url}`
398
399
// Only try to use cache for GET requests
400
- if (requestMethod === 'GET') {
+ if (requestMethod === 'GET' && this.cache != null) {
401
const cachedResponse = await this.cache?.match(url)
402
if (cachedResponse?.ok === true) {
403
// Check if the cached response has expired
0 commit comments