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

Commit f842e67

Browse files
committed
chore: add cache-control header to handler sizes upload
1 parent 4438a09 commit f842e67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/upload-handler-sizes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const uploadHandlerSizesToS3 = async (
5757
Bucket: "serverless-nextjs-handler-sizes",
5858
Key: `sizes-github-sha-${process.env.GITHUB_SHA}.json`,
5959
Body: JSON.stringify(sizes, null, 2),
60-
ContentType: "application/json"
60+
ContentType: "application/json",
61+
CacheControl: "public, max-age=2592000, immutable"
6162
})
6263
.promise();
6364
};

0 commit comments

Comments
 (0)