Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

undo pwa

if ('caches' in window) {
    caches.keys()
      .then(function(keyList) {
          return Promise.all(keyList.map(function(key) {
              return caches.delete(key);
          }));
      })
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undo #pwa
ADD COMMENT
Topic
Name
7+1 =