From c2c3becc96604c544253f573f5e8d3cbe5c2c86a Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Tue, 4 Mar 2025 07:53:38 +0000 Subject: [PATCH] Merged in feat/cache-static-files (pull request #1466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(static files): add cache to all static files * feat(static files): add cache to all static files Approved-by: Joakim Jäderberg --- apps/scandic-web/netlify.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/scandic-web/netlify.toml b/apps/scandic-web/netlify.toml index 94a97869f..07a1fc4ea 100644 --- a/apps/scandic-web/netlify.toml +++ b/apps/scandic-web/netlify.toml @@ -36,3 +36,8 @@ remote_images = [ [functions."sitemap"] schedule = "@daily" + +[[headers]] + for = "/_next/static/*" + [headers.values] + cache-control = "public, max-age=31536000, immutable"