HTML 5 本地域存储大小限制子域


HTML5 的 localStorage 数据库是大小受限的。标准大小是每个域 5 或 10 MB。建议每个原点限制为 5 MB。

以下为声明 −

User agents should guard against sites storing data under their origin's other
affiliated sites, e.g. storing up to the limit in a1.example.com,a2.example.com,
a3.example.com, etc, circumventing the mainexample.com storage limit.

对于大小限制 −

A mostly arbitrary limit of five megabytes per origin is suggested.
Implementation feedback is welcome and will be used to update this suggestion
in the future.

更新于: 2020 年 3 月 4 日

486 次浏览

启动你的 职业

完成课程获得认证

开始
Advertisement