diff options
author | Alan Pearce | 2020-01-12 14:06:29 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-12 14:06:29 +0100 |
commit | c329c4990a1e249e94de42263488dc9361c0717f (patch) | |
tree | 6b2e76cf55ea586fc5e4424b1ee694206f88de42 | |
parent | 9f704c758226e3983ad62bf95f1e226f4671ce28 (diff) | |
download | website-c329c4990a1e249e94de42263488dc9361c0717f.tar.lz website-c329c4990a1e249e94de42263488dc9361c0717f.tar.zst website-c329c4990a1e249e94de42263488dc9361c0717f.zip |
Add caching headers for images and css
-rw-r--r-- | netlify.toml | 10 |
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 = ''' |