aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service-worker.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/service-worker.ts b/src/service-worker.ts
index b721b18..0af4ccb 100644
--- a/src/service-worker.ts
+++ b/src/service-worker.ts
@@ -55,12 +55,11 @@ self.addEventListener('fetch', <EventType extends FetchEvent>(event: EventType)
// for pages, you might want to serve a shell `service-worker-index.html` file,
// which Sapper has generated for you. It's not right for every
// app, but if it's right for yours then uncomment this section
- /*
if (url.origin === self.origin && routes.find(route => route.pattern.test(url.pathname))) {
- event.respondWith(caches.match('/service-worker-index.html'));
+ event.respondWith(caches.match('/Aurora-data/service-worker-index.html'));
return;
}
- */
+
if (event.request.cache === 'only-if-cached') return;