Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 6, 2024
1 parent 3eab995 commit 538c189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/cache/memory-cache-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ class MemoryStoreReadableStream extends Readable {
* @type {MemoryStoreValue}
*/
#value

/**
* @type {Buffer[]}
*/
Expand Down
6 changes: 1 addition & 5 deletions lib/handler/cache-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ class CacheHandler extends DecoratorHandler {
// https://www.rfc-editor.org/rfc/rfc9111.html#name-invalidating-stored-respons
// Try/catch for if it's synchronous
try {
const result = this.#store.deleteByOrigin(this.#requestOptions.origin)
if (typeof result?.catch === 'function') {
// Fail silently
result.catch(noop)
}
this.#store.deleteByOrigin(this.#requestOptions.origin.toString())?.catch?.(noop)
} catch {
// Fail silently
}
Expand Down

0 comments on commit 538c189

Please sign in to comment.