To check all resources cached by service worker, run the following in developer's Tool (F12) Console tab:
window.caches.keys().then(function (cacheNames) { cacheNames.forEach(function (cacheName) { window.caches.open(cacheName).then(function (cache) { return cache.keys(); }).then(function (requests) { requests.forEach(function (request) { console.log(cacheName, request.url); }); }); }); });
No comments:
Post a Comment