最大尺寸的iPad / iPhone离线应用程序缓存 [英] Max size iPad / iPhone Offline Application Cache

查看:109
本文介绍了最大尺寸的iPad / iPhone离线应用程序缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道iPad上的Safari离线应用程序缓存的最大大小。苹果手机。看起来像是5MB。有没有办法扩大这个尺寸?

Anyone knows the max size of Safari's 'Offline Application Cache' on the iPad & iPhone. Looks like it's 5MB. Is there any way to enlarge this size?

离线应用程序缓存文档: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html

Offline application cache docs: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html

推荐答案

我在iPhone上遇到同样的问题。在iPad上我虽然转过身来。如果您的清单第一次包含小于5MB的文件,并且您通过window.applicationCache.update()更新缓存,并且在执行更新之前将清单文件增加到10mb以下它将起作用。如果你继续这样做(每次增加清单<5MB然后更新())你会看到iPad可以缓存超过5MB的限制。

I have the same problem on iPhone. On iPad though I figured a turn around. If your manifest contains files less than 5MB the first time and you update the cache by window.applicationCache.update() and before doing the update you increase the manifest files to be below 10mb it will work. If you continue doing that (increasing the manifest by <5MB each time and then update()) you will see that the iPad can cache more than the 5MB limit.

让Apple感到非常伤心,因为不支持Flash和MIDP,但只有HTML5才能为网络应用程序提供支持。

It is so sad that Apple by not supporting Flash and MIDP but only HTML5 for web-apps screws so much on that.

这篇关于最大尺寸的iPad / iPhone离线应用程序缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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