I had the same question. Turns out you can create an interval to poll for updates in registerServiceWorker.js:
registered(registration) {
console.log(
'Service worker has been registered and now polling for updates.'
)
setInterval(() => {
registration.update()
}, 5000) // every 5 seconds
}
I had the same question. Turns out you can create an interval to poll for updates in
registerServiceWorker.js
:This works perfectly ! thanks !