v4.0.6: output.css CDN 캐시 무효화 및 nginx CSS 캐시 정책 수정

HTML은 갱신됐으나 구 output.css가 CDN에 남아 Tailwind 레이아웃이 깨지던 문제를 ?v= 쿼리와 CSS must-revalidate로 해결한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 15:57:00 +09:00
parent ba89235207
commit ac1ab7d8c0
9 changed files with 41 additions and 10 deletions

View File

@@ -23,8 +23,15 @@ server {
client_max_body_size 25m;
}
# 정적 자산 캐시
location ~* \.(js|css|png|jpg|jpeg|gif|webp|ico|svg|woff2?)$ {
# CSS — 배포 후 즉시 반영 (immutable 사용 안 함)
location ~* \.css$ {
expires 1h;
add_header Cache-Control "public, must-revalidate";
try_files $uri =404;
}
# 기타 정적 자산
location ~* \.(js|png|jpg|jpeg|gif|webp|ico|svg|woff2?)$ {
expires 7d;
add_header Cache-Control "public, immutable";
try_files $uri =404;