Cache Manifest Size Limit and Web Apps

最后都变了- 提交于 2019-12-03 04:30:06

In case people are still wondering about this...

I've currently got an app that is 44MB of resources successfully downloaded and tested offline on Safari(6.1), Chrome(31), Firefox(26), iPad (ios7) and iPhone (ios6).

Only problem I have discovered is when you add the app to the home screen. I've decided this is because the app is too big and needs to expand the cache however there is no handling for this and it just ends with an error. Work around -> reload the app. Close, open, and resave cache = works.

Gaurav

There is no limit according to the spec, but I believe the limit is more than 5 MB. See also Is there a size limit for HTML5 Manifest?

Appcache size is limited to 5 MB in android devices. If you are creating hybrid application for android devices, you need to ensure that appcache should not exceeds 5MB. Otherwise, appcache download is getting failed once it reaches size limit.

The same issue wont occur in other devices (iphone, windows, blackberry etc).

Mobile

| Chrome | Android Browser | Firefox | Safari | Safari | iOS WebView | iOS WebView |
|   40   |       4.3       |   34    |   6,7  |   8    |     6,7     |      8      |
|    ~   |        ∞        |    ∞    |  300MB | 300MB  |    100MB    |    100MB    |

Desktop

| Chrome | Firefox |   Safari   |   Safari  |   IE   |   IE   |
|   40   |    34   |     6,7    |     8     |    9   |  10,11 |
|    ~   |  500MB  |      ∞     |     ∞     |    ?   |  100MB |

Reference Link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!