diff --git a/sw.js b/sw.js index f726fa1..08cdaa3 100644 --- a/sw.js +++ b/sw.js @@ -23,7 +23,8 @@ self.addEventListener('install', function(e){ self.addEventListener('activate', function(e){ e.waitUntil( caches.keys().then(function(keys){ - return Promise.all(keys.filter(function(k){ return k !== CACHE; }) + // Only this app's caches: every app on krburchel.github.io shares one cache store. + return Promise.all(keys.filter(function(k){ return k.indexOf('brainfeed-') === 0 && k !== CACHE; }) .map(function(k){ return caches.delete(k); })); }).then(function(){ return self.clients.claim(); }) );