Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pwa cache viewer

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