最大尺寸 iPad/iPhone 离线应用程序缓存 [英] Max size iPad / iPhone Offline Application Cache
问题描述
任何人都知道 iPad 上 Safari 的离线应用程序缓存"的最大大小iPhone.看起来是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?
推荐答案
我在 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屋!