MCPcopy Create free account
hub / github.com/nodejs/undici / deleteCachedValueIfNotModified

Function deleteCachedValueIfNotModified

lib/handler/cache-handler.js:479–483  ·  view source on GitHub ↗
(statusCode, store, cacheKey)

Source from the content-addressed store, hash-verified

477}
478
479function deleteCachedValueIfNotModified (statusCode, store, cacheKey) {
480 if (statusCode === 304) {
481 deleteCachedValue(store, cacheKey)
482 }
483}
484
485/**
486 * @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType

Callers 1

onResponseStartMethod · 0.85

Calls 1

deleteCachedValueFunction · 0.70

Tested by

no test coverage detected