From 999133b8aac75e4499d0ac03c704993830c17f76 Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 6 Nov 2022 16:24:29 -0500 Subject: [PATCH] Cache /assets --- netlify.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index e36d643..75cda39 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ [build] publish = "dist" - command = "npm run build" \ No newline at end of file + command = "npm run build" +[[headers]] + for = "/assets/*" + [headers.values] + Cache-Control = "public, max-age=31536000, immutable" \ No newline at end of file