From a5f16438f58069c2440570fc9606af7a9c77f2ff Mon Sep 17 00:00:00 2001 From: peerless_hero Date: Mon, 23 Dec 2024 22:38:38 +0800 Subject: [PATCH] feat(netlify): Implement caching for static assets --- netlify.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netlify.toml b/netlify.toml index 3c153bde..1a10b361 100755 --- a/netlify.toml +++ b/netlify.toml @@ -5,6 +5,11 @@ command = "npm run build" [build.environment] NODE_VERSION = "20" +[[headers]] +for = "/assets/*" +[headers.values] +Cache-Control = "public, max-age=31536000" + [[redirects]] from = "/*" to = "/index.html"