fix: 安装统计分页再加固 + index.html 禁缓存
This commit is contained in:
1 parent
34b7c8aa23
commit
c4b00cbf85
2 files changed
+16
-2
No files matched your search
+8
-1
@@ -4,11 +4,18 @@ server {
|
||||
server_name _;
|
||||
|
||||
root /var/www/public;
|
||||
index index.php index.html;
|
||||
index index.html index.php;
|
||||
|
||||
client_max_body_size 20M;
|
||||
|
||||
# 前端 SPA fallback
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
expires 0;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user