diff --git a/server-nginx-default b/server-nginx-default index 9fabd0c..ada0bbb 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -83,6 +83,12 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # GooseFarm index.html 캐시 방지 (Vite 해시 파일명 변경 시 즉시 반영) + location = /goosefarm/index.html { + alias /var/www/html/goosefarm/index.html; + add_header Cache-Control "no-store, no-cache, must-revalidate"; + } + # GooseFarm Frontend location /goosefarm { alias /var/www/html/goosefarm/; @@ -275,6 +281,12 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # GooseFarm index.html 캐시 방지 (Vite 해시 파일명 변경 시 즉시 반영) + location = /goosefarm/index.html { + alias /var/www/html/goosefarm/index.html; + add_header Cache-Control "no-store, no-cache, must-revalidate"; + } + # GooseFarm Frontend location /goosefarm { alias /var/www/html/goosefarm/;