Removed current installCache

This commit is contained in:
Eduard Urbach 2017-10-26 04:01:26 +02:00
parent c87bc71f89
commit 63757a9edd

View File

@ -329,13 +329,16 @@ class MyServiceWorker {
} }
installCache() { installCache() {
return caches.open(this.cache.version).then(cache => { // TODO: Implement a solution that caches resources with credentials: "same-origin"
return cache.addAll([ return Promise.resolve()
"./",
"./scripts", // return caches.open(this.cache.version).then(cache => {
"https://fonts.gstatic.com/s/ubuntu/v11/4iCs6KVjbNBYlgoKfw7z.ttf" // return cache.addAll([
]) // "./",
}) // "./scripts",
// "https://fonts.gstatic.com/s/ubuntu/v11/4iCs6KVjbNBYlgoKfw7z.ttf"
// ])
// })
} }
fromCache(request) { fromCache(request) {