Re: [slightlyoff/ServiceWorker] consider allowing multiple worker thread instances for a single registration (#756)

> But, do your flags often change during the life of a service worker?

I think what that doesn't matter since the intention is to get _current flags_, not to check if they updated. I also guess that IDB Observers won't help because they won't be triggered on each SW startup and it actually will be no different than a pulling on SW startup.

As I understand it right, `navigate` pages aren't cached by SW or are `network-first`. SW doesn't have any flags in code, which is why every `navigate` page have to send a message to the SW to store flags. Even on those flags don't change (but I guess they may, e.g. different flags for different users), SW still have to read those flags from IDB because it could be killed after last `fetch` and for new `fetch` it needs flags again.

This is how I understand it.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/756#issuecomment-238027322

Received on Saturday, 6 August 2016 14:58:25 UTC