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.
广告