From bb7d69dde8ac57320336d5407fb54699c41aa34b Mon Sep 17 00:00:00 2001 From: platane Date: Tue, 20 Feb 2024 16:33:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8vercel=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/github-user-contribution/[userName].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts b/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts index 3c79b5cc4..33dd22dea 100644 --- a/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts +++ b/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts @@ -6,7 +6,7 @@ export default async (req: VercelRequest, res: VercelResponse) => { try { res.setHeader("Access-Control-Allow-Origin", "https://platane.github.io"); - res.setHeader("Cache-Control", "max-age=21600"); + res.setHeader("Cache-Control", "max-age=21600, s-maxage=21600"); res.statusCode = 200; res.json( await getGithubUserContribution(userName as string, {