From b16004027052f371fc209a93eaf352380d3bee02 Mon Sep 17 00:00:00 2001 From: chambaz Date: Tue, 10 Dec 2024 15:57:21 -0500 Subject: [PATCH] chore: increase be cache --- apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts b/apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts index 59d83e2acc..a10dd0b427 100644 --- a/apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts +++ b/apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts @@ -32,8 +32,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) } const data = await response.json(); - // cache for 4 minutes - res.setHeader("Cache-Control", "s-maxage=240, stale-while-revalidate=59"); + // cache for 20 minutes + res.setHeader("Cache-Control", "s-maxage=1200, stale-while-revalidate=300"); res.status(200).json(data); } catch (error) { console.error("Error:", error);