Cloudfront should not be used to serve video over HTTP to Chrome... Video playback uses HTTP 1.1 206 Range Get request. Cloudfront serves the requests, but writes the response as HTTP 1.0. HTTP 206 responses are not part of the HTTP 1.0 spec, thus Chrome will not cache the response ✝. (IE/Safari will cache HTTP 1.0/206 responses, thus there is no problem with these browsers.) Because Chrome will not cache the response, it only buffers a few seconds ahead of the current playhead. Pause and buffer does't not work when using cloudfront.
✝ The theory by the Google Chrome engineers is that they don't want to risk caching bad data because caching bad data is a bigger problem than having the browser reload data, and thus Chrome only caches data that is served with in-spec HTTP responses.
REF: https://forums.aws.amazon.com/message.jspa?messageID=459195
沒有留言:
張貼留言