添加netlify缓存配置

This commit is contained in:
zyronon 2024-04-03 22:43:56 +08:00
parent 3bc2932998
commit 41af020709

29
netlify.toml Normal file
View File

@ -0,0 +1,29 @@
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.jpg"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.webp"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"