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
© . All rights reserved.