Does iPhone/iPad Safari require 'Accept-Ranges' header for video?

后端 未结 2 976
[愿得一人]
[愿得一人] 2020-12-01 18:15

I\'ve been having problems serving videos from my dev server that play in mobile Safari. My dev server does not support the \'Accept-Ranges\' header and after reading a few

2条回答
  •  伪装坚强ぢ
    2020-12-01 18:59

    The answer above is helpful, but does not actually answer the question that was asked.

    According to the HTTP RFC, the Accept-Ranges header is optional even when byte-range requests are supported.

    However, the documented curl check implies that the answer is no: iOS does not require the Accept-Ranges header for video, but does require byte-range support with partial content (206) responses.

    Disclaimer: I haven't checked it on an actual device.

提交回复
热议问题