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 c615c01 commit 9725982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ self.addEventListener('activate', function (event) {
caches.keys().then(function(cacheNames) {
return Promise.all(
cacheNames.map(function(cache) {
if (cache !== cacheName) { //cacheName = 'cache-v1'
caches.delete(cache); //Deleting the cache
if (cache !== cacheName) {
return caches.delete(cache); //Deleting the cache
}
})
)
Expand Down

0 comments on commit 9725982

Please sign in to comment.