问题描述
我已经看到发布的客户端存储限制:LocalStorage:大小为 5MBSqlite 存储:5MB 可根据用户要求扩展.
I have seen posted limits on client-side storage:LocalStorage: sizes are 5MBSqlite storage: 5MB expandable by user request.
首先,这些数字仍然正确吗?...还有会话存储"怎么样?
First, are these numbers still correct? ...and how about "sessions storage" too?
其次,这些存储方案是否相互排斥?... 或者这个限制是所有客户端存储的聚合 - LocalStorage、SessionStorage、Cache(通过清单)和 Sqlite 数据.
Secondly, are these storage schemes mutually exclusive? ... or is this limit an aggregate of all client-side storage - LocalStorage, SessionStorage, Cache (via manifest) and Sqlite data.
感谢您的帮助.
格雷格
推荐答案
据我所知,5mb 跨本地存储共享,会话存储.如果我们关闭浏览器,会话存储密钥将被删除,作为每个会话保存的数据.这 5mb 是每个域.即,浏览器将为 abc.com 分配 5mb,为 xyz.com 分配 5mb.等等..并且 abc.com 无法访问 xyz.com 本地存储元素.
As per my knowledge that 5mb shared across local storage,session storage.If we close the browser session storage keys are removed as data saved per session.And this 5mb is per domain.i.e., browser will allocate 5mb for abc.com ,5mb for xyz.com. etc..And abc.com cannot access xyz.com local storage elements.
这篇关于HTML5:“本地存储"和“sqlite存储"限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!