どのAzureサービスを参照していますか?アプリのサービスAccept-Ranges
で
はデフォルトでオンになっている:
$ curl -i http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 200 OK
Content-Length: 10114593
Content-Type: audio/mpeg
Accept-Ranges: bytes
Lavf52.84.0 ���D �aA�Kr���a�n��=-㏼`�1� ��i
q�D5��e�/@kq|�:�G3%�`|K�cX�����kי��q��ŎNR�ם
<< rest of binary content follows >>
$ curl -i -H "Range: bytes=0-" http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 206 Partial Content
Content-Length: 10114593
Content-Type: audio/mpeg
Content-Range: bytes 0-10114592/10114593
Accept-Ranges: bytes
Lavf52.84.0 ���D �aA�Kr���a�n��=-㏼`�1� ��i
q�D5��e�/@kq|�:�G3%�`|K�cX�����kי��q��ŎNR�
<< rest of binary content follows >>
$ curl -i -H "Range: bytes=200-300" http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 206 Partial Content
Content-Length: 101
Content-Type: audio/mpeg
Content-Range: bytes 200-300/10114593
Accept-Ranges: bytes
3��P�P�(�|�LF�����?4s�
A ���� <<<<0��Y�ms�|�晍l���2��FsP]A�x&�Ó�����;%�`L
うまくいけば、Appleが明示的に要求してRange:
ヘッダを送信せずに206 Partial Content
を期待されていません。それはばかげているだろう。