HTML5 清单有大小限制吗?
我一直在研究 HTML5 清单,但不清楚使用清单进行缓存是否有文件大小限制。
例如,如果我想让多个音频文件离线可用,可以使用清单来实现吗?或者它真的只适用于小图像和文本?
I have been looking into HTML5 manifest but I am unclear as to whether or not there is file size limit for caching using the manifest.
For example if i wanted to make several audio files available offline would this be achieved using manifest? or is it really only for small images and text?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知规范没有不指定对象或整个缓存的最大大小,但例如firefox 有一个首选项,默认情况下允许总共50mb 的缓存文件。这意味着缓存确实针对小文件(html、css、js、图像)进行了优化,而不是针对大文件(视频、音频等)进行了优化。
as far as i know the spec doesn't specify a maximum size for an object or for the entire cache, but e.g. firefox has a preference which by default allows a total of 50mb worth of cache-files. that implies that indeed the cache is optimized for small files (html, css, js, images) and not for big files (video, audio, ...).