fix: 이미 열었던 탭을 다시 열면 '날씨 불러오는 중'에서 멈추던 문제 — HTML 을 no-store 로, 빌드 파일을 못 받거나 12초 넘게 첫 화면이면 한 번 새로 불러오기

This commit is contained in:
minaChoi committed 2026-10-23 16:18:49 +09:00
1 parent 15ec6da083
commit 97ffe547ae
2 files changed
+27 -2

No files matched your search

+3 -2
View File
@@ -50,13 +50,14 @@ server {
}
location @static {
add_header Cache-Control "no-cache";
add_header Cache-Control "no-store";
try_files $uri.html /index.html;
}
# HTML 은 no-store: no-cache 면 다시 연 탭·뒤로 가기에서 예전 HTML 을 다시 써서, 배포로 지워진 빌드 파일을 부르다 멈춘다
# SPA: /gak 처럼 빌드 때 만든 페이지별 HTML(gak.html)이 있으면 그것을, 없으면 index.html. 폴더는 안 찾는다 (/season 이 이미지 폴더 public/season 과 겹쳐 403)
location / {
add_header Cache-Control "no-cache";
add_header Cache-Control "no-store";
try_files $uri $uri.html /index.html;
}
}