- From: Matthew <notifications@github.com>
- Date: Mon, 04 Oct 2021 00:56:13 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 4 October 2021 07:56:25 UTC
Im running into this issue regarding the lack of `Content-Length` headers. Im using Cloudflare Workers, and the `fetch()` API removes the `Content-Length` header when using Streams. The end result is a download is non-resumable, since there is no `Content-Length` Chrome doesnt even attempt to make it resumable, if there is a network dropout Chrome just deletes the `.crdownload` file that contains the bytes received so far. This is rather frustrating, since if I could send `Content-Length` and `Accept-Range` headers, I am guessing Chrome would utilise them and allow my Streamed download to be properly resumable? Unless there are some other headers you can send when doing `Transfer-Encoding: chunked` to still let modern browsers understand to keep the bytes received on net dropouts, and to send a Range header to resume downloading -- 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/95#issuecomment-933236481
Received on Monday, 4 October 2021 07:56:25 UTC