Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
chore: add cache-control header to handler sizes upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dphang committed Jun 28, 2021
1 parent 4438a09 commit f842e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/upload-handler-sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const uploadHandlerSizesToS3 = async (
Bucket: "serverless-nextjs-handler-sizes",
Key: `sizes-github-sha-${process.env.GITHUB_SHA}.json`,
Body: JSON.stringify(sizes, null, 2),
ContentType: "application/json"
ContentType: "application/json",
CacheControl: "public, max-age=2592000, immutable"
})
.promise();
};
Expand Down

0 comments on commit f842e67

Please sign in to comment.