Skip to content

Commit

Permalink
Merge pull request #1369 from aligent/fix/prerender_behaviour-legacy
Browse files Browse the repository at this point in the history
[Legacy] let prerender response override cache-control header set, by matching the case
  • Loading branch information
crispy101 authored May 14, 2024
2 parents ecbc6e5 + b6e69cc commit 8fa88ec
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 8fa88ec

Please sign in to comment.