Re: [w3c/ServiceWorker] provide a way to execute work after browser has consumed a response (#1397)

It depends on the site, but in the cases I'm thinking of probably not.  Its very likely you would need more of a delay to wait for the current page to finish loading.  One site I know of uses a 10 second timeout before writing to cache.  You could also envisage something that keeps the responses in memory in the SW and then the page postMessages the SW to persist them after page load is complete.

-- 
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/1397#issuecomment-535738270

Received on Friday, 27 September 2019 00:53:21 UTC