From 63757a9eddd73283619c4ed71158151a276013e1 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 26 Oct 2017 04:01:26 +0200 Subject: [PATCH] Removed current installCache --- sw/service-worker.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sw/service-worker.ts b/sw/service-worker.ts index 701fa408..901a49ca 100644 --- a/sw/service-worker.ts +++ b/sw/service-worker.ts @@ -329,13 +329,16 @@ class MyServiceWorker { } installCache() { - return caches.open(this.cache.version).then(cache => { - return cache.addAll([ - "./", - "./scripts", - "https://fonts.gstatic.com/s/ubuntu/v11/4iCs6KVjbNBYlgoKfw7z.ttf" - ]) - }) + // TODO: Implement a solution that caches resources with credentials: "same-origin" + return Promise.resolve() + + // return caches.open(this.cache.version).then(cache => { + // return cache.addAll([ + // "./", + // "./scripts", + // "https://fonts.gstatic.com/s/ubuntu/v11/4iCs6KVjbNBYlgoKfw7z.ttf" + // ]) + // }) } fromCache(request) {