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

Function deleteCachedValueIfNotModified

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

Source from the content-addressed store, hash-verified

463}
464
465function deleteCachedValueIfNotModified (statusCode, store, cacheKey) {
466 if (statusCode === 304) {
467 deleteCachedValue(store, cacheKey)
468 }
469}
470
471/**
472 * @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