Re: [fetch] Response content-length header almost always wrong (#67)

@jakearchibald the http cache generally stores the on-the-wire data for the response.  It does not strip gzip, etc.

This is much harder for Cache API to achieve since we get a Response where Response.body has gzip/etc decoded already.  Also, the Response could be synthetic, etc.

So the http cache case has the correct content length because its using the on-the-wire format.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/67#issuecomment-122292186

Received on Friday, 17 July 2015 14:21:59 UTC