* @param {import('../../types/cache-interceptor.d.ts').default.CacheStore} store * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
(store, cacheKey)
| 455 | * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey |
| 456 | */ |
| 457 | function deleteCachedValue (store, cacheKey) { |
| 458 | try { |
| 459 | store.delete(cacheKey)?.catch?.(noop) |
| 460 | } catch { |
| 461 | // Fail silently |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | function deleteCachedValueIfNotModified (statusCode, store, cacheKey) { |
| 466 | if (statusCode === 304) { |
no test coverage detected