是否可以(以及如何)缓存 html5
我知道这个问题很奇怪,所以让我解释一下。我有一个 html5 应用程序,一个回答问题的化身。然而,虽然不忙,但我希望我的头像显示等待动画。收到了我的视频,它运行得很好,但这是一个 2 秒的视频,我想访问它,而无需每次播放时询问服务器,它的流量太大了。我想要的是下载一次,然后每次需要时都可以播放。有没有办法缓存它?其他解决方案也很受欢迎^^。
谢谢你们
I know this question is rather strange ,so let me explain. I got an html5 application, an avatar that answers questions. However, while not busy, i want my avatar to display a waiting animation. Got my video, and it works just fine, but it is a 2 secs video that i want to access without asking the server every time i have to play it, its just too much traffic. What i want is to download it once, and then be able to play it every time i need. Is there anyway to cache it? Other solutions are wellcomed too ^^.
Thank you guys
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是否有效,但您可以尝试使用缓存清单。以下是有关如何使用它的信息: http://www.webreference .com/authoring/languages/html/HTML5-Application-Caching/
简单来说:
manifest.cache
I am not sure if that works, but you can try using cache manifest. Here is info on how to use it: http://www.webreference.com/authoring/languages/html/HTML5-Application-Caching/
Briefly:
manifest.cache