This commit is contained in:
parent
c7a571e8e9
commit
4eae38763a
@ -16,7 +16,7 @@ npm-debug.log*
|
|||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
|
|
||||||
docs
|
docs
|
||||||
IDE*
|
# 勿写 IDE*:会误伤官网目录「IDE官网」,导致 / 探针 404
|
||||||
xhs-agent-desktop
|
xhs-agent-desktop
|
||||||
**/*.md
|
**/*.md
|
||||||
!src/**/*.md
|
!src/**/*.md
|
||||||
|
|||||||
@ -11,7 +11,8 @@ server {
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
try_files /site/index.html =404;
|
# 官网优先;缺失时回退 SPA,避免 readiness 探针 404
|
||||||
|
try_files /site/index.html /index.html =404;
|
||||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
add_header Pragma "no-cache";
|
add_header Pragma "no-cache";
|
||||||
add_header Expires "0";
|
add_header Expires "0";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user