Application Cache Manifest + Local Storage Size Limit

笑着哭i 提交于 2020-01-23 00:59:37

问题


I'm building an application that might have heavy offline storage needs, and I was wondering if it's possible to use both an offline cache manifest (5MB) as well as localstorage (5MB) to be able to use 10MB of storage.

Note that this is an intranet application, so we have control of the devices.


回答1:


I have tested this in Chrome, Firefox, Opera and Safari and all browser use for both technique a limit of 5 mb. So it's possible...

Note: - The limit of localStorage and Offline Application Caching varies per browser. - IE doesn't support Offline Application Caching - In Opera and Safari you can store more than 5mb of localStorage. - In chrome you can check size of application cache by url: chrome://appcache-internals/ and localStorage in the map localStorage.



来源:https://stackoverflow.com/questions/5109768/application-cache-manifest-local-storage-size-limit

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