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

Function invalidateUnsafeRequest

lib/handler/cache-handler.js:116–120  ·  view source on GitHub ↗
(store, cacheKey, resHeaders)

Source from the content-addressed store, hash-verified

114}
115
116function invalidateUnsafeRequest (store, cacheKey, resHeaders) {
117 deleteCachedUri(store, cacheKey, cacheKey.path)
118 deleteLocationTargets(store, cacheKey, resHeaders.location)
119 deleteLocationTargets(store, cacheKey, resHeaders['content-location'])
120}
121/**
122 * @typedef {import('../../types/dispatcher.d.ts').default.DispatchHandler} DispatchHandler
123 *

Callers 1

onResponseStartMethod · 0.85

Calls 2

deleteCachedUriFunction · 0.85
deleteLocationTargetsFunction · 0.85

Tested by

no test coverage detected