Re: [whatwg/fetch] Specify restriction for requests with keepalive set (#679)

> So, from Chrome's perspective, a KeepAliveContext would replace the per-renderer restrictions?

Yes.

> Does this mean doing away with the 30 second timeout in Chrome? Could we at least apply an equivalent timeout to a ServiceWorker, so a page can't create a keepalive request that lives longer than a ServiceWorker could perform the equivalent fetch?

No, it should be covered by  "Cancel a request with keepalive set when a certain time period passed from the fetch group termination."

> I also like the "keepalive does nothing in ServiceWorkers" approach, although it might confuse developers. Presumably if a keepalive is forwarded through a ServiceWorker it gets added to the KeepAliveContext for the page it came from?

Could you tell me why it's confusing?
Your proposal is very interesting. I'll add it to the options.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/679#issuecomment-379151000

Received on Friday, 6 April 2018 05:22:01 UTC