Combining HTML5 localStorage and local Database for more space?

送分小仙女□ 提交于 2019-12-12 14:39:14

问题


I am developing a web application for remote areas with little internet connectivity and was wondering if I can use HTML5 localStorage with a maximum size of 10MB and HTML5 local Database with a maximum size of 10MB for a total of 20MB of offline storage (Not including HTML5 Application Cache) or do browsers combine these quotas? Is HTML5 Application Cache a separate quota? Are there any other ways of getting more than 10MB of persistent storage?


回答1:


You might expect the browser to enforce a single limit for all storage an origin can use, but the major browsers are actually enforcing limits separately for each storage mechanism.

Source: http://www.html5rocks.com/en/tutorials/offline/storage/#quotas

That answers your question I think.



来源:https://stackoverflow.com/questions/6589134/combining-html5-localstorage-and-local-database-for-more-space

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