5

Can I store more than 5 MB in HTML5 local(offline) storage? I referred the following sources,

  1. http://diveintohtml5.info/storage.html
  2. http://htmlui.com/blog/2011-08-23-5-obscure-facts-about-html5-localstorage.html

and they say no.But they are over an year old and newer versions of Chrome and safari has been released since then.

I am concerned only about chrome and safari.My web app is expected to run on tablets and laptops. A clear answer is highly appreciated!

  • Possible duplicate off: http://stackoverflow.com/questions/2989284/what-is-the-max-size-of-localstorage-values – RTB Nov 26 '12 at 21:53
  • @RTB The question is older than the asker's sources. – John Dvorak Nov 26 '12 at 21:54
  • 1
    The test page that one of the answers to the linked page, however, is useful: http://arty.name/localstorage.html – John Dvorak Nov 26 '12 at 21:56
  • 2
    Happily, 2+ years later the answer "usually 5MB" still seems to be correct for most common cases. – Rex M Nov 26 '12 at 23:21
  • 1
    No. 2.5M for localStorage and 2.5MB for sessionStorage. it is not design to store large data because it is non-transactional synchronous API. – Kyaw Tun Nov 27 '12 at 03:27

0 Answers0