结合HTML5 localStorage和本地数据库以获得更多空间? [英] Combining HTML5 localStorage and local Database for more space?
问题描述
我正在为几乎没有互联网连接的偏远地区开发一个Web应用程序,并且想知道我是否可以使用最大大小为10MB的HTML5 localStorage和最大大小为10MB的HTML5本地数据库,总共20MB的离线存储空间(不包括HTML5应用程序缓存)或浏览器是否结合这些配额? HTML5应用程序缓存是否是单独的配额?有没有其他方法可以获得超过10MB的持久存储空间?
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?
推荐答案
您可能期望浏览器到
对源可以使用的所有存储
强制执行单个限制,但主要的
浏览器实际上是为每个存储机制分别强制执行限制
。
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.
来源: http://www.html5rocks.com/en/tutorials/offline/storage/#quotas
我认为这回答了你的问题。
That answers your question I think.
这篇关于结合HTML5 localStorage和本地数据库以获得更多空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!