Registers the worker with updateViaCache: 'all', so a controlled navigation skips the script
update check inside the script's one-day cache lifetime, then runs the version handshake.
Resolves to null where service workers do not exist; the page then works as it always did.
Registers the worker with
updateViaCache: 'all', so a controlled navigation skips the script update check inside the script's one-day cache lifetime, then runs the version handshake. Resolves tonullwhere service workers do not exist; the page then works as it always did.