Note that there are some explanatory texts on larger screens.

plurals
  1. POIs 5MB the de facto limit for W3C Web Storage?
    primarykey
    data
    text
    <p>I am looking into using browser sessionStorage for a web application, and was trying to find current information on size limitations. It appears most desktop browsers have imposed a 5MB limit. However, I am not finding many recent articles nor information on the mobile browsers.</p> <p>The <a href="http://www.w3.org/TR/webstorage/#disk-space" rel="noreferrer">Disk space</a> of the W3C Web Storage specification says "A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future."</p> <p>The QuirksMode HTML5 compatibility page for <a href="http://www.quirksmode.org/dom/html5.html#localstorage" rel="noreferrer">localstorage</a> has its last major update on 12 June 2009 and only includes data for last years current browsers: IE8, FF 3.5b4, Saf 4, Chrome 2.</p> <p>According to <a href="http://msdn.microsoft.com/en-us/library/cc197062(VS.85).aspx" rel="noreferrer">Introduction to DOM Storage</a>, IE8 "allows Web applications to store nearly 10 MB of user data." <a href="http://www.nczonline.net/blog/2009/07/21/introduction-to-sessionstorage/" rel="noreferrer">Introduction to sessionStorage</a> seems to confirm that "Firefox’s and Safari’s storage limit is 5MB per domain, Internet Explorer’s limit is 10 MB per domain."</p> <p><a href="http://dev.opera.com/articles/view/web-storage/" rel="noreferrer">Web Storage: easier, more powerful client-side data storage</a> from the Opera developer site states "As of now, most browsers that have implemented Web Storage, including Opera, have placed the storage limit at 5 Mb per domain."</p> <p>A recent chromium issue (<a href="http://code.google.com/p/chromium/issues/detail?id=42740" rel="noreferrer">#42740</a>) put a 5mb quota on session storage.</p> <p><a href="http://building-iphone-apps.labs.oreilly.com/ch05.html" rel="noreferrer">Chapter 5. Client-Side Data Storage</a> from <a href="http://oreilly.com/catalog/9780596805784?cmp=il-orm-ofps-iphoneapps" rel="noreferrer">Building iPhone Apps with HTML, CSS, and JavaScript</a> states "At the time of this writing, browser size limits for localStorage and sessionStorage are still in flux."</p> <p><strong>Question:</strong> Based on this info, should I just assume 5MB is the limit or should I spend time testing different browsers? Does anybody know of an existing test suite (a la <a href="http://www.browserscope.org/" rel="noreferrer">Browserscope</a>) that would have these results?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload