加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
netlify.toml 860 Bytes
一键复制 编辑 原始数据 按行查看 历史
zyronon 提交于 2024-04-03 23:51 . 添加netlify缓存配置
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[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"
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化