缓存较大的 flv 文件 5mb +
我正在使用 flowplayer,并告诉 .htaccess 将 flv 文件缓存 30 分钟。当文件小于 5mb 时,它会进行缓存,如果超过 5mb,则不会。如何像 youtube 那样强制缓存?
我发现 5mb 是浏览器默认值。如果 youtube 能够绕过这个,我也应该能够。有什么想法吗?
I'm using flowplayer, and told .htaccess to cache flv files for 30 minutes. When the files are under 5mb it caches, if over that, it doesn't. How do I force cache like youtube does?
5mb from what I've found out is a browser default. If youtube is able to bypass that, I should be able to as well. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使您可以绕过浏览器限制,这样做也会是不好的网络公民身份。基本上,这将开始使用比用户授权更多的用户资源。不要这样做。
我认为 YouTube 本地缓存的数量不会超过您的浏览器允许的数量。我查看大型高清视频文件并重新加载页面,但视频未预加载。我没有看到你在问题评论中所说的内容。
当然,该行为可能依赖于浏览器。 这篇文章显示了截至去年,不同的浏览器现在都一样大或更大。
Even if you could bypass browser limits, doing so would be bad net citizenship. Basically, that would be setting out to use more of the user's resources than the user has authorized. Don't do it.
I don't think YouTube is locally caching more than your browser is allowing. I view a large HD video file and reload the page and the video is not preloaded. I don't see what you say you're seeing in the comment on your question.
Of coures, that behavior may be browser-dependent. This post shows cache sizes for different browsers as of last year and they are certainly as large or larger now.