- From: JP Sugarbroad <notifications@github.com>
- Date: Wed, 04 Jan 2017 10:44:51 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 4 January 2017 18:45:50 UTC
I'm personally against modifying the Request object, both because it fails to cancel the response (which will surprise people) and because it interacts badly with the various ways in which Requests are copied/cloned. The other solutions are all trade-offs, but so far I like either the controller pattern or the cancelling promise (@jan-ivar) pattern. The latter has the advantage of working with service workers: ```js addEventListener('fetch', event => { event.respondWith( fetch('cat.jpg', {cancel: event.cancelled}) ); }); ``` -- 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/447#issuecomment-270451113
Received on Wednesday, 4 January 2017 18:45:50 UTC