我无法弄清楚我需要在Partial Responses(206)上设置什么才能让Google Chrome和Firefox缓存发送到浏览器的字节数据.Internet Explorer似乎对我的标题感到满意,根据我收集的内容,Chrome非常具体地说明了什么构成了缓存的有效响应.
背景:
我正在为一个长视频加载一个元素,我正在寻找同一视频中的剪辑.当我在剪辑之间寻找并回到第一个剪辑...而不是播放缓存的数据时,它在另一个206请求中再次从服务器请求数据.
以下是其中一个reues的标题:
Request URL:http://localhost:51202/Stream/StreamVideo?videoFileGuid=e824795d-18af-43cb-935d-b793dbbe36fb
Request Method:GET
Status Code:206 Partial Content
Request Headers
GET /Stream/StreamVideo?videoFileGuid=e824795d-18af-43cb-935d-b793dbbe36fb HTTP/1.1
Host: localhost:51202
Connection: keep-alive
Accept-Encoding: identity;q=1, *;q=0
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Referer: http://localhost:52309/Playlists/Playlist/ViewPlaylist?playlistGuid=165deee2-e5d3-435c-ac19-f2f7357cf6d2
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
Cookie: .ASPXAUTH=<snip>
Range: bytes=463809580-
Query String Parameters
videoFileGuid=e824795d-18af-43cb-935d-b793dbbe36fb
Response Headers
HTTP/1.1 206 Partial Content
Cache-Control: public
Content-Length: 421590265
Content-Type: video/mp4
Content-Range: bytes 463809580-885399845/885399846
Expires: Thu, 14 Nov 2013 08:54:30 GMT
Last-Modified: Fri, 01 Nov 2013 …Run Code Online (Sandbox Code Playgroud)