Skip to content

Commit

Permalink
✨ cache the request from vercel for 6h
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Feb 20, 2024
1 parent 2479713 commit 14a003d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 14a003d

Please sign in to comment.