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

Function getUsableLastModified

lib/interceptor/cache.js:146–151  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

144}
145
146function getUsableLastModified (headers) {
147 const lastModified = headers?.['last-modified']
148 if (typeof lastModified === 'string' && parseHttpDate(lastModified)) {
149 return lastModified
150 }
151}
152
153function makeRevalidationHeaders (opts, result) {
154 const headers = {

Callers 1

makeRevalidationHeadersFunction · 0.85

Calls 1

parseHttpDateFunction · 0.85

Tested by

no test coverage detected