From fb7cd7edd1c32f0c3be528e67b194e5a30fbba13 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 31 Jan 2024 21:45:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=9C=EB=B9=84=EC=8A=A4=EC=9B=8C?= =?UTF-8?q?=EC=BB=A4=EC=97=90=EC=84=9C=20navigate=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=9B=90=EC=9D=B8=20=EC=A3=BC=EC=84=9D=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/pwaServiceWorker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/public/pwaServiceWorker.js b/frontend/public/pwaServiceWorker.js index 85f61adc6..4f8a0c6e9 100644 --- a/frontend/public/pwaServiceWorker.js +++ b/frontend/public/pwaServiceWorker.js @@ -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 전략은 항상 네트워크 요청에 대한 응답을 사용하고, 네트워크 실패 시 대비책으로서 캐시를 이용한다.