diff --git a/frontend/index.html b/frontend/index.html
index 0dc6364..d9d64c4 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -10,6 +10,30 @@
gtag('config', 'G-D378J4X373');
+
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
index 8cc3b1d..9bc60b6 100644
--- a/frontend/nginx.conf
+++ b/frontend/nginx.conf
@@ -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;
}
}