- From: Jake Archibald <notifications@github.com>
- Date: Tue, 23 Jun 2026 07:01:21 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 23 June 2026 14:01:25 UTC
jakearchibald created an issue (whatwg/fetch#1936) https://github.com/whatwg/fetch/pull/560 allowed range requests from media elements to pass through the service worker. However, you can see the range header in the service worker, and this can be used to learn the byte size of the media resource, by forcing a request for the final chunk of the media. Media is pretty leaky already, as it'll give you the duration of the resource, but it seems like we shouldn't make the byte length observable. We could do one of the following: - Hide the range header value on these requests. - Lie that the range header value is `0-`. The advantage of the latter is that code that detects whether the request is a range request will still work… maybe. The rest of the rules we have in the spec, like removing the range header if the request is modified, will remain. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1936 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1936@github.com>
Received on Tuesday, 23 June 2026 14:01:25 UTC