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 26faba9 commit d3f95fdCopy full SHA for d3f95fd
src/jwk-fetcher.ts
@@ -63,7 +63,7 @@ export class UrlKeyFetcher implements KeyFetcher {
63
64
// store the public keys cache in the KV store.
65
const maxAge = parseMaxAge(cacheControlHeader);
66
- if (!isNaN(maxAge)) {
+ if (!isNaN(maxAge) && maxAge > 0) {
67
await this.keyStorer.put(JSON.stringify(publicKeys.keys), maxAge);
68
}
69
0 commit comments