all repos — website @ c329c4990a1e249e94de42263488dc9361c0717f

My website

Add caching headers for images and css
Alan Pearce alan@alanpearce.eu
Sun, 12 Jan 2020 14:06:29 +0100
commit

c329c4990a1e249e94de42263488dc9361c0717f

parent

9f704c758226e3983ad62bf95f1e226f4671ce28

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M netlify.tomlnetlify.toml
@@ -65,6 +65,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]
     Link = '''