summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Pearce2020-01-12 14:06:29 +0100
committerAlan Pearce2020-01-12 14:06:29 +0100
commitc329c4990a1e249e94de42263488dc9361c0717f (patch)
tree6b2e76cf55ea586fc5e4424b1ee694206f88de42
parent9f704c758226e3983ad62bf95f1e226f4671ce28 (diff)
downloadwebsite-c329c4990a1e249e94de42263488dc9361c0717f.tar.xz
website-c329c4990a1e249e94de42263488dc9361c0717f.zip
Add caching headers for images and css
-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 @@
65 force = true 65 force = true
66 66
67[[headers]] 67[[headers]]
68 for = "/img/*"
69 [headers.values]
70 Cache-Control = "public, maxage=604800, stale-while-revalidate=600"
71
72[[headers]]
73 for = "/css/*"
74 [headers.values]
75 Cache-Control = "public, maxage=604800, stale-while-revalidate=600"
76
77[[headers]]
68 for = "/*" 78 for = "/*"
69 [headers.values] 79 [headers.values]
70 Link = ''' 80 Link = '''