简体   繁体   English

ipad和iphone的ios缓存限制

[英]ios cache limit for ipad and iphone

I am doing some site scans for some of our apps at work, and one of the issues (from Sort Site)says: 我正在为我们的一些应用程序进行一些网站扫描,其中一个问题(来自Sort Site)说:

"Images, scripts and CSS files larger than 25k are not cached on iPhone and iPad." “超过25k的图像,脚本和CSS文件不会在iPhone和iPad上缓存。”

Is this still true? 这仍然是真的吗? If not, what is the cache limit, if there is one? 如果没有,缓存限制是多少,如果有的话?

It differs depending on your device iPhone vs iPad and Mobile Safari version. 它取决于您的设备iPhone与iPad和Mobile Safari版本。 This study shows that the 25k Page Cache Size Limit apples to Mobile Safari iOS 3.2 on a iPad. 这项研究表明iPad上的25k页面缓存大小限制适用于Mobile Safari iOS 3.2。 But Mobile Safari, iOS 4.0 on a iPhone does not have this limit. 但Mobile Safari,iPhone上的iOS 4.0没有这个限制。

As I read that 2010 study the 25k limit only applies to your HTML. 当我读到2010年的研究时 ,25k限制仅适用于您的HTML。 "Try to limit HTML pages to 25.6KB or less if you want them to be cached." “如果你想要将它们缓存,请尝试将HTML页面限制在25.6KB或更低。”

Other resources have a much higher limit. 其他资源有更高的限制。 4mb on IOS and 2 MB on Android. IOS上4mb,Android上2MB。 I would assume these limits will only increase in future so this study, while dated, is at least a good baseline. 我认为这些限制只会在将来增加,因此这项研究虽然过时,但至少是一个很好的基线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM