Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pwa clear cache

if ('serviceWorker' in navigator) {
  caches.keys().then(function(cacheNames) {
    cacheNames.forEach(function(cacheName) {
      caches.delete(cacheName);
    });
  });
}
 
PREVIOUS NEXT
Tagged: #pwa #clear #cache
ADD COMMENT
Topic
Name
2+5 =