Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

ขีดจำกัดขนาด HTML5 localStorage สำหรับ sub domains


ฐานข้อมูล localStorage ของ HTML5 มีขีดจำกัดขนาด ขนาดมาตรฐานคือ 5 หรือ 10 MB ต่อโดเมน ขีดจำกัด 5 MB ต่อ origin แนะนำ

ระบุไว้ดังนี้:

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 main example.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.