Re: [ServiceWorker] Expanded on the update() Note: (#616)

> When loading a registered service worker script, the UA normally checks the HTTP cache for an unexpired copy

This is done when loading a client request occurs, rather than when the service worker script is loaded. Eg, two controlled document loads would cause two updates, even if the SW didn't shut down in between, therefore only loaded once.

> `update()`'s behavior is conceptually the same as what the UA does a maximum once every 24 hours on its own, to prevent service worker scripts from being cached for longer than a day.

Can't decide if "maximum" is misleading. I mean, the UA can check for updates more than once every 24hrs.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/pull/616#issuecomment-72879073

Received on Wednesday, 4 February 2015 15:52:23 UTC