Skip to content

Commit

Permalink
fix: 서비스워커에서 navigate 에러 원인 주석처리
Browse files Browse the repository at this point in the history
  • Loading branch information
wonsss committed Jan 31, 2024
1 parent d4151b5 commit fb7cd7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/public/pwaServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ self.addEventListener('fetch', (event) => {
return;
}

// router navigate 응답
if (event.request.mode === 'navigate') {
event.respondWith(caches.match('/index.html') || fetch(event.request));
// router navigate 응답 ->
// if (event.request.mode === 'navigate') {
// event.respondWith(caches.match('/index.html') || fetch(event.request));

return;
}
// return;
// }

// 이미지(Network First)
// Network First 전략은 항상 네트워크 요청에 대한 응답을 사용하고, 네트워크 실패 시 대비책으로서 캐시를 이용한다.
Expand Down

0 comments on commit fb7cd7e

Please sign in to comment.