4 ms·
I had an issue serving videos on my site before and encounter a bug where Mobile Safari won't play the video if there's no `Accept-ranges: bytes` header. The h
by cheeaun 6y ago
I had an issue serving videos on my site before and encounter a bug where Mobile Safari won't play the video if there's no `Accept-ranges: bytes` header.
The header is somehow removed when served from Cloudflare https://community.cloudflare.com/t/mp4-wont-load-in-safari-using-cloudflare/10587/25 https://community.cloudflare.com/t/mp4-wont-load-in-safari-u...
I had to create a page rule to exclude videos from being served from Cloudflare CDN.
- ubercow13 6y agoI think they fixed this at some point, or at least, I have dealt with the same issue at various points and at the moment my videos work fine on iOS served through Cloudflare.
- cheeaun 6y agoOh wow you're right. I just tried disabling the page rule, load my site on Mobile Safari private mode, and it works! Looks like `Accept-Ranges` is not there but there's `Content-Range`. Not sure how this works exactly but really glad this is fixed :D