Skip to content

Commit

Permalink
chore: increase be cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Dec 10, 2024
1 parent eb17d20 commit b160040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/marginfi-v2-ui/src/pages/api/birdeye/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b160040

Please sign in to comment.