Browse Source

添加netlify缓存配置

pull/49/head
zyronon 1 year ago
parent
commit
9ed3717d7f
  1. 4
      README-en-US.md
  2. 4
      README.md
  3. 5
      netlify.toml

4
README-en-US.md

@ -26,9 +26,9 @@ This project is only applicable for technical research and sharing, and cannot b @@ -26,9 +26,9 @@ This project is only applicable for technical research and sharing, and cannot b
## Online access
Netlify: <https://douyins.netlify.app> (If you are in China, you need Vpn)
Netlify: <https://douyins.netlify.app/> (If you are in China, you need Vpn)
Vercel: <http://dy.ttentau.top> (This is recommended in China.)
Vercel: <http://dy.ttentau.top/> (This is recommended in China.)
**Note**: PC browsers should be accessed in mobile mode.
Press F12 to bring up the console, and then press Ctrl+Shift+M to switch to mobile mode.

4
README.md

@ -20,9 +20,9 @@ @@ -20,9 +20,9 @@
## 在线访问
Vercel: [http://dy.ttentau.top](http://dy.ttentau.top) (国内推荐访问这个)
Vercel: [http://dy.ttentau.top](http://dy.ttentau.top/) (国内推荐访问这个)
Netlify:[https://douyins.netlify.app](https://douyins.netlify.app) (需要翻墙)
Netlify:[https://douyins.netlify.app](https://douyins.netlify.app/) (需要翻墙)
**注意**:`PC` 浏览器请用手机模式访问。先按 `F12` 调出控制台,再按 `Ctrl+Shift+M` 切换到手机模式

5
netlify.toml

@ -33,3 +33,8 @@ @@ -33,3 +33,8 @@
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"

Loading…
Cancel
Save