bengarrett / DOSee

DOSee is a DOSBox based, MS-DOS emulator for the web.
https://dosee.link
GNU General Public License v3.0
56 stars 25 forks source link

[REQUEST] Check for updates and reset cache. #45

Closed bengarrett closed 2 years ago

bengarrett commented 3 years ago

Whenever the cached, local service worker, or cache is out of date, bring up a banner to prompt for a refresh.

See 1., 2.

caches.keys().then(cacheNames => {
  cacheNames.forEach(cacheName => {
    caches.delete(cacheName);
  });
});

Or workbox-expiration.CacheExpiration, example

Also BroadcastCacheUpdate, example.

bengarrett commented 2 years ago

Added a Update DOSee and the service worker button on the index.html running example.