修复: nginx 禁止 index.html 缓存,防止部署后资源 404
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m56s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m56s
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -19,6 +19,9 @@ server {
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
|
||||
Reference in New Issue
Block a user