The update() method of the ServiceWorkerRegistration interface attempts to update the service worker.
update()
MDN Reference