Mobile Safari 5mb HTML5应用程序缓存限制? [英] Mobile Safari 5mb HTML5 application cache limit?

查看:185
本文介绍了Mobile Safari 5mb HTML5应用程序缓存限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的测试中,越来越明显的是,Mobile Safari的HTML5应用程序缓存实现的大小限制为5mb。

有人知道如何规避或提高这个吗?有一些我应该知道的未曝光元标记吗?我必须为离线应用缓存一些视频内容,5mb还不够。

解决方案

我试着写一个使用此清单进行简单测试:

  CACHE MANIFEST 
#2010-06-20:v4

http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
http://peach.blender.org/wp-content/uploads/big_big_buck_bunny.jpg
http://apod.nasa.gov/apod/image/9712/orionfull_jcc_big.jpg
http://www.thelivingmoon.com/43ancients/04images/Titan/titan5km_huygens_big.jpg
http://upload.yeuamnhac.com/musica/dan_lily/dancontent/rh108poster1big.jpg

此缓存将需要11.4MB的存储空间。



当我打开一个包含该清单文件的页面时,它会这样说:该网站需要使用高达25MB的存储空间,你想增加本地存储吗?。



我认为我得到了iOS的方式:


  • 本地只有5MB存储(包括HTML5应用程序缓存)

  • 如果您的网站需要更多内容,Safari需要用户同意某些软件包(最多10MB或25MB或更多...) b $ b


希望对你有用。


It's becoming evident in my testing that there's a 5mb size limit on Mobile Safari's implementation of HTML5's application cache.

Does anyone know how to circumvent or raise this? Is there some unexposed meta tag that I should know about? I have to cache some video content for an offline app and 5mb is not going to be enough.

解决方案

I tried to write a simple test with this manifest:

CACHE MANIFEST
# 2010-06-20:v4

http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
http://peach.blender.org/wp-content/uploads/big_big_buck_bunny.jpg
http://apod.nasa.gov/apod/image/9712/orionfull_jcc_big.jpg
http://www.thelivingmoon.com/43ancients/04images/Titan/titan5km_huygens_big.jpg
http://upload.yeuamnhac.com/musica/dan_lily/dancontent/rh108poster1big.jpg

This cache will need 11.4MB of storage.

When I open a page include that manifest file, it say something like that: "This website require to use up to 25MB of storage, do you want to increase local storage?".

I think I got what the way iOS do:

  • You only have 5MB for local storage (include HTML5 application cache)
  • If your web need more, Safari need user's agreement for some packages (up to 10MB, or 25MB, or more...)

Hope that useful for you.

这篇关于Mobile Safari 5mb HTML5应用程序缓存限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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