From 37afa0d1b3f7af897edd186a3b8ff345d83b146f Mon Sep 17 00:00:00 2001 From: 0xMakkkka <92357475+0xMakka@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:07:35 +0000 Subject: [PATCH] add cache-control header to api route (#2398) --- base/pages/api/prices.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/base/pages/api/prices.ts b/base/pages/api/prices.ts index 8760fe799c..c442eb5159 100644 --- a/base/pages/api/prices.ts +++ b/base/pages/api/prices.ts @@ -14,6 +14,7 @@ export default async function handler( req: NextApiRequest, res: NextApiResponse ) { + res.setHeader("Cache-Control", "public, s-maxage=60"); if (req.method !== "GET") { return res.status(405).json({ error: "Method not allowed" }); }