Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTTP range requests #447

Closed
rexpan opened this issue Jul 10, 2018 · 3 comments · Fixed by #464 or #465
Closed

Support HTTP range requests #447

rexpan opened this issue Jul 10, 2018 · 3 comments · Fixed by #464 or #465

Comments

@rexpan
Copy link

rexpan commented Jul 10, 2018

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

Related #342

@mischnic
Copy link

👍

HTML5 video elements don't work in Safari without range request support

@ghost
Copy link

ghost commented Aug 5, 2018

I think this may be related to a problem that I am having. A video on my static site is not loading in Safari and Chrome.

The video loads fine in Firefox, but not Safari and Chrome. The differences that I can identify:

Firefox does not send a range request header. It receives a 200 response without a Content-Length header. The video plays to the amusement of people everywhere.

Safari sends a Range: bytes=0-1 header in the request and receives a 206 response with Content-Length: 2 and Content-Range: bytes 0-1/2. It logs a console error: Failed to load resource: Plug-in handled load.

Chrome sends 3 requests. Its first request looks like Firefox's. It then makes a 2nd request after receipt of the 200. The second request is exactly like the first, but add range: bytes=0-. It gets a 206 response with Content-Length: 2194624 and Content-Range: bytes 0-2194623/2194624. Chrome then makes a third request with the headers if-range: W/"df5e28104932a6ef65e9c352919b66a04680f93c" and range: bytes=2162688-2194623 and gets a 416 response with now's 416 HTML error page.

Why isn't Zeit now serving my video correctly?

@leo
Copy link
Contributor

leo commented Aug 14, 2018

This just landed in 9.6.0! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants