Re: [ServiceWorker] FetchEvent.respondWith does something weird with the body of a response (#850)

My understanding is our plan is to use pipe. Something like this.

1. Let _response2_ be a response copied from _response_ except for its body.
1. If _response_'s body is non-null:
 1. Let {_rs_, _ws_} be an identical transform stream.
 1. Call pipeTo on _response_'s body's stream with _ws_.
 1. Set _response2_'s body to a new body with _rs_, _response_'s body's transmitted bytes and _response_'s body's total bytes.
1. Set the potential response to _response2_.


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/850#issuecomment-197893295

Received on Thursday, 17 March 2016 14:08:37 UTC