1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
863 B
TOML

[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [ ".cache" ]
[[headers]]
for = "*.js" # js files should be set this way
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.css" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.jpg" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.jpeg" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.png" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.gif" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.svg" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"