Skip to content

Fix : Service Worker(/sw.js) Cache-Control 헤더 추가 (#239)#240

Merged
GulSam00 merged 1 commit into
developfrom
fix/239-swCacheControl
May 19, 2026
Merged

Fix : Service Worker(/sw.js) Cache-Control 헤더 추가 (#239)#240
GulSam00 merged 1 commit into
developfrom
fix/239-swCacheControl

Conversation

@GulSam00
Copy link
Copy Markdown
Owner

📌 PR 제목

[Fix] : Service Worker(/sw.js) Cache-Control 헤더 추가

📌 변경 사항

  • apps/web/next.config.tsasync headers() 추가
  • /sw.js 응답에 Cache-Control: public, max-age=0, must-revalidate 적용
  • 결과적으로 브라우저가 매 페이지 로드마다 SW 갱신 여부를 확인하게 되어, main 머지 후 구 Service Worker의 precache 매니페스트가 최대 24시간 살아남던 위험을 제거

💬 추가 참고 사항

  • close fix : Service Worker(/sw.js) 캐시 헤더 추가로 배포 반영 지연 방지 #239
  • 본 PR은 캐시 헤더 한 건만 추가한다. 후속 작업 후보는 별도 이슈로 분리한다.
    • /api/version 응답에 Cache-Control: no-store 적용
    • PWARegister에 SW updatefound 감지 + 새로고침 안내 토스트 추가
    • /data/changelog.json의 SW precache 제외 검토
  • 검증
    • pnpm --filter web build 성공 (타입 체크 포함, 신규 에러 0)
    • pnpm --filter web lint 통과 (신규 warning 0, 기존 warning만 존재)
    • pnpm --filter web format 통과 (포맷 변경 없음)
    • 테스트 스위트는 프로젝트 미구성

@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
singcode Ready Ready Preview, Comment May 19, 2026 10:26am

@GulSam00
Copy link
Copy Markdown
Owner Author

/describe

@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@GulSam00
Copy link
Copy Markdown
Owner Author

/review

@GulSam00
Copy link
Copy Markdown
Owner Author

/improve

@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

1 similar comment
@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@GulSam00 GulSam00 merged commit 6676724 into develop May 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix : Service Worker(/sw.js) 캐시 헤더 추가로 배포 반영 지연 방지

1 participant