HTML5 Manifest是否有大小限制? [英] Is there a size limit for HTML5 Manifest?

查看:220
本文介绍了HTML5 Manifest是否有大小限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究HTML5清单,但我不清楚是否有使用清单进行缓存的文件大小限制。

例如,如果我想让多个音频文件脱机可用,这可以通过使用清单来实现吗?或者它真的只适用于小图片和文字?

解决方案

据我所知规范未指定对象或整个缓存的最大大小,但是例如Firefox默认情况下允许总共50MB的缓存文件。这意味着高速缓存确实针对小文件(html,css,js,图像)进行了优化,而不是针对大文件(视频,音频......)进行优化。


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?

解决方案

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, ...).

这篇关于HTML5 Manifest是否有大小限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆