From 76fae0a4fc3cd70cd27b1299ee7b8f41c36b64d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mauro=20=F0=9F=A4=99?= <91018726+mauro-balades@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:46:43 +0000 Subject: [PATCH] added cache for homepage --- next.config.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 431d026..2bbc670 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -17,6 +17,19 @@ const nextConfig = { compiler: { styledComponents: true, }, + async headers() { + return [ + { + source: "/", + headers: [ + { + key: "Cache-Control", + value: "s-maxage=1, stale-while-revalidate=59", + }, + ], + }, + ] + } }; export default nextConfig;