about summary refs log tree commit diff stats
path: root/netlify.toml
diff options
context:
space:
mode:
authorAlan Pearce2020-01-12 14:06:29 +0100
committerAlan Pearce2020-01-12 14:06:29 +0100
commitc329c4990a1e249e94de42263488dc9361c0717f (patch)
tree6b2e76cf55ea586fc5e4424b1ee694206f88de42 /netlify.toml
parent9f704c758226e3983ad62bf95f1e226f4671ce28 (diff)
downloadwebsite-c329c4990a1e249e94de42263488dc9361c0717f.tar.lz
website-c329c4990a1e249e94de42263488dc9361c0717f.tar.zst
website-c329c4990a1e249e94de42263488dc9361c0717f.zip
Add caching headers for images and css
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
index 4a2efbb..54927ff 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -65,6 +65,16 @@
   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 = '''