How can I programmatically update service worker since ServiceWorkerRegistration.update()
has not been implemented in Chrome yet? Is there an alternative?
相关问题
- PWAs on iOS 12 no longer shares Service Worker cac
- Are promises lazily evaluated?
- start_url does not respond with a 200 when offline
- Adding a new header to a Request, while preserving
- Is there a way to understand what install error co
相关文章
- Checking for service worker updates in a single pa
- Uncaught (in promise) DOMException: Quota exceeded
- Ubuntu graphviz 'sfdp' not working
- Manifest start_url is not cached by a Service Work
- Why does fetch request have to be cloned in servic
- JSF 2 template partial update [duplicate]
- Get page URL parameters from a service worker
- How to remove a service worker registered in previ
Thr best workaround seems to be to force update by changing checksum of the service worker file by some simple backend code (it can be like last commented line with microtime), which will be detected by browser
I assume you got this by now but I think you want serviceWorker.skipWaiting()
From the spec.