From 14a003db514603082e498ed793a24c3f71e1b9b4 Mon Sep 17 00:00:00 2001 From: platane Date: Tue, 20 Feb 2024 16:28:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20cache=20the=20request=20from=20verc?= =?UTF-8?q?el=20for=206h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/github-user-contribution/[userName].ts | 1 + 1 file changed, 1 insertion(+) 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 19b5c3ff9..3c79b5cc4 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,6 +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.statusCode = 200; res.json( await getGithubUserContribution(userName as string, {