diff --git a/src/util/util.ts b/src/util/util.ts index c28c88cbee4..27bcce6385e 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -668,8 +668,8 @@ export function parseCacheControl(cacheControl: string): Record export function getExpiryDataFromHeaders(responseHeaders: Headers | Map | undefined) { if (!responseHeaders) return {cacheControl: undefined, expires: undefined}; - const cacheControl = responseHeaders.get('Cache-Control'); - const expires = responseHeaders.get('Expires'); + const cacheControl = responseHeaders.get('cache-control'); + const expires = responseHeaders.get('expires'); return {cacheControl, expires}; }