* @param {import('../../types/cache-interceptor.d.ts').default.CacheStore} store * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
(store, cacheKey)
| 469 | * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey |
| 470 | */ |
| 471 | function deleteCachedValue (store, cacheKey) { |
| 472 | try { |
| 473 | store.delete(cacheKey)?.catch?.(noop) |
| 474 | } catch { |
| 475 | // Fail silently |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | function deleteCachedValueIfNotModified (statusCode, store, cacheKey) { |
| 480 | if (statusCode === 304) { |
no test coverage detected