Skip to content

Commit

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

0 comments on commit bb7d69d

Please sign in to comment.