Skip to content

Commit

Permalink
添加netlify缓存配置
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Apr 3, 2024
1 parent 1adaefb commit 9ed3717
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 切换到手机模式

Expand Down
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9ed3717

Please sign in to comment.