diff --git a/packages/prerender-proxy/lib/handlers/cache-control.ts b/packages/prerender-proxy/lib/handlers/cache-control.ts index 8543a6ef..b6114c1d 100644 --- a/packages/prerender-proxy/lib/handlers/cache-control.ts +++ b/packages/prerender-proxy/lib/handlers/cache-control.ts @@ -7,9 +7,8 @@ export const handler = async ( const cacheKey = process.env.PRERENDER_CACHE_KEY || "x-prerender-requestid"; const cacheMaxAge = process.env.PRERENDER_CACHE_MAX_AGE || "0"; const response = event.Records[0].cf.response; - if (response.headers[`${cacheKey}`]) { - response.headers["Cache-Control"] = [ + response.headers["cache-control"] = [ { key: "Cache-Control", value: `max-age=${cacheMaxAge}`,