Skip to content

Commit

Permalink
let prerender response override cache-control header set, by matching…
Browse files Browse the repository at this point in the history
… the case
  • Loading branch information
Chris Park committed May 13, 2024
1 parent ecbc6e5 commit b6e69cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/prerender-proxy/lib/handlers/cache-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const handler = async (
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}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/prerender-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aligent/cdk-prerender-proxy",
"version": "0.1.7",
"version": "1.0.2",
"description": "A Cloudfront Lambda@Edge stack for integrating with prerender.io",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b6e69cc

Please sign in to comment.