添加netlify缓存配置
This commit is contained in:
parent
3bc2932998
commit
41af020709
29
netlify.toml
Normal file
29
netlify.toml
Normal 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"
|
||||
Loading…
Reference in New Issue
Block a user