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() {
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) {