mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.19k stars 22.47k forks source link

Need an example site that actually sends 'Accept-Ranges: none' in responses #16073

Closed ac2epsilon closed 1 month ago

ac2epsilon commented 2 years ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests

What specific section or headline is this issue about?

curl -I https://www.youtube.com/watch?v=EwTZ2xpQwpA

What information was incorrect, unhelpful, or incomplete?

Look... 1 curled URL directs to a complex Html page, which has corresponding non-media type 2 and as such has no Accept-Ranges: none 3 and surely not in such transcription 4 because youtube uses all-lowercase for headers. Be careful with easy solutions.

What did you expect to see?

Something which does not cross an idea of the article

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

I love you guys in a different ways

MDN metadata

Page report details * Folder: `en-us/web/http/range_requests` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/http/range_requests/index.md * Last commit: https://github.com/mdn/content/commit/0872b73731bb333479087e069e0ba94009587fb7 * Document last modified: 2022-04-22T06:07:10.000Z
teoli2003 commented 2 years ago

Youtube changed the headers they sent over the years. (For example, the change in capitalization comes as they switched to HTTP/2 and most actual headers are not even sent)

Do you know of another live URL that we could use instead?

bsmth commented 1 month ago

Thanks for reporting. The linked PR fixes this. And some more details: some older browsers relied on Accept-Ranges: none to disable the 'pause' and 'resume' buttons in the download manager. Nowadays if responses omit the Accept-Ranges header, it indicates the server doesn't support partial requests, so it's going to be harder to find examples that use this.