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.

更新於:04-Mar-2020

486 次觀看

開啟你的 職業生涯

完成課程即可獲得認證

開始
廣告
© . All rights reserved.