- From: Joshua Bell <notifications@github.com>
- Date: Fri, 11 Mar 2016 20:44:48 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Saturday, 12 March 2016 04:45:19 UTC
> 1) New-up a new promise immediately in the FetchEvent > 2) Call fetchEvent.respondWith(myNewPromise) > 3) In my reply function, instead of calling respondWith I'll call myPromise.resolve() Bingo - that's indeed the pattern you want. (Well, not literally `myPromise.resolve()` of course...) (Good luck with the sick offspring!) --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/844#issuecomment-195660062
Received on Saturday, 12 March 2016 04:45:19 UTC