From c329c4990a1e249e94de42263488dc9361c0717f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 Jan 2020 14:06:29 +0100 Subject: Add caching headers for images and css --- netlify.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/netlify.toml b/netlify.toml index 4a2efbb..54927ff 100644 --- a/netlify.toml +++ b/netlify.toml @@ -64,6 +64,16 @@ status = 301 force = true +[[headers]] + for = "/img/*" + [headers.values] + Cache-Control = "public, maxage=604800, stale-while-revalidate=600" + +[[headers]] + for = "/css/*" + [headers.values] + Cache-Control = "public, maxage=604800, stale-while-revalidate=600" + [[headers]] for = "/*" [headers.values] -- cgit 1.4.1