开发者

flash makes 2 requests and is not cached

开发者 https://www.devze.com 2023-03-15 17:55 出处:网络
i use the jwplayer (player.swf) as flash fallback (object) in the video tag. I have two videos on the site and wonder if its normal that i have two http requests even the player.swf is the same.

i use the jwplayer (player.swf) as flash fallback (object) in the video tag. I have two videos on the site and wonder if its normal that i have two http requests even the player.swf is the same.

Then the other thing is that the player.swf is not cached - I don't get a 304. But the expires header is one month in the future.

<video width="334" height="250" controls preload="none" poster="/uploads/my_poster.jpg">
  <source src="/uploads/my.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
  <source src="/uploads/my.webm" type='video/webm; codecs="vp8, vorbis"' />
  <source src="/uploads/my.ogv" type='video/ogg; codecs="theora, vorbis"' />
  <object width="334" height=开发者_JAVA技巧"250" type="application/x-shockwave-flash" data="/design/mediaplayer/flash/player.swf">
    <param name="movie" value="/design/mediaplayer/flash/player.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="allowscriptaccess" value="never" />
    <param name="wmode" value="opaque" />
    <param name="flashvars" value='controlbar=over&amp;skin=/design/mediaplayer/flash/skin/skin.xml&amp;image=/uploads/my_poster.jpg&amp;file=../../../uploads/my.mp4' />
  </object>
</video>
0

精彩评论

暂无评论...
验证码 换一张
取 消