This commit is contained in:
TLRZ Seyfferth 2018-01-24 17:45:29 +01:00
parent d44d5bdae3
commit 62ae5335d8

View File

@ -25,8 +25,7 @@ self.addEventListener('install', function(event){
console.log("[Cache] opened: ", APP_SHELL_CACHE); console.log("[Cache] opened: ", APP_SHELL_CACHE);
return cache.addAll(APP_SHELL_URLS); return cache.addAll(APP_SHELL_URLS);
}) })
).waitUntil( .open(APP_DATA_CACHE)
caches.open(APP_DATA_CACHE)
.then(function(cache){ .then(function(cache){
console.log("[Cache] opened: ", APP_DATA_CACHE); console.log("[Cache] opened: ", APP_DATA_CACHE);
return cache.addAll(APP_DATA_URLS); return cache.addAll(APP_DATA_URLS);