14

任何人都知道 iPad 和 iPhone 上 Safari 的“离线应用程序缓存”的最大大小。好像是5MB。有没有办法放大这个尺寸?

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

4

3 回答 3

9

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.

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

于 2010-05-06T22:08:41.087 回答
4

如果您的应用程序使用超过 5mb,iPhone/iPad 将要求用户允许网站使用更多空间。

增加本地存储

于 2012-10-31T20:00:37.557 回答
0

让我们在这里阅读我的测试:Mobile Safari 5mb HTML5 application cache limit?

我认为您的应用程序需要用户同意才能存储超过 5MB。您遇到的另一个问题是网络问题。50MB的传输速度太慢了...

于 2012-04-17T16:39:57.003 回答