添加netlify缓存配置

This commit is contained in:
zyronon 2024-04-03 23:51:47 +08:00
parent 1adaefbcbb
commit 9ed3717d7f
3 changed files with 9 additions and 4 deletions

View File

@ -26,9 +26,9 @@ This project is only applicable for technical research and sharing, and cannot b
## Online access ## 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. **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. Press F12 to bring up the console, and then press Ctrl+Shift+M to switch to mobile mode.

View File

@ -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` 切换到手机模式 **注意**`PC` 浏览器请用手机模式访问。先按 `F12` 调出控制台,再按 `Ctrl+Shift+M` 切换到手机模式

View File

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