[w3c/ServiceWorker] Should a SW client.id persists across Discards/Reloads of the same page? (#1263)

For a given Client, if the client was discarded in the background due to memory pressure, later restored. Should this client get a new id, or should it keep its original id.

I have tested the current behavior in Chrome, and it seems the Client is assigned a new id. I guess this is expected since the reload would establish a new connection to the SW, and hence get a new id.

But it seems that there might be some use cases where persisting the id across discard/restore can be helpful.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1263

Received on Thursday, 18 January 2018 22:30:07 UTC