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

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

问题描述

任何人都知道 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?

离线应用缓存文档:https://developer.apple.com/library/archive/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天全站免登陆