Skip to content

Commit

Permalink
Updated sw
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Oct 24, 2016
1 parent 9725982 commit e227ea3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,11 @@ self.addEventListener('activate', function (event) {
caches.keys().then(function(cacheNames) {
return Promise.all(
cacheNames.map(function(cache) {
if (cache !== cacheName) {
if (cache !== cacheName) { //cacheName = 'cache-v1'
return caches.delete(cache); //Deleting the cache
}
})
)
})
.catch(function (error) {
console.error(error);
);
})
);
});
Expand Down

0 comments on commit e227ea3

Please sign in to comment.