[Solved] – JavaScript – How can we Check the max size of local Storage values?

How can we Check the max size of local Storage values?

Asked on October 18, 2018 in Javascript.
Add Comment


  • 2 Answer(s)

     

    Mobile browsers:
    Browser | Chrome | Android Browser | Firefox | iOS Safari
    Version | 40 | 4.3 | 34 | 6-8
    Available | 10MB | 2MB | 10MB | 5MB

    In this the table is listed above with the max of the local storage values for the mobile browsers

    Desktop browsers:
    Browser | Chrome | Opera | Firefox | Safari | IE
    Version | 40 | 27 | 34 | 6-8 | 9-11
    Available | 10MB | 10MB | 10MB | 5MB | 10MB

    In this the table is listed above with the max of the local storage values for the Desktop browsers

    Answered on October 18, 2018.
    Add Comment

    Web storage can be viewed simplistically as an improvement on cookies, providing much greater storage capacity (10 MB per origin in Google Chrome(https://plus.google.com/u/0/+FrancoisBeaufort/posts/S5Q9HqDB8bh), Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer) and better programmatic interfaces.

    And also quoting from a John Resig article [posted January 2007]:

    Storage Space

    It is implied that, with DOM Storage, you have considerably more storage space than the typical user agent limitations imposed upon Cookies. However, the amount that is provided is not defined in the specification, nor is it meaningfully broadcast by the user agent.

    If you look at the Mozilla source code we can see that 5120KB is the default storage size for an entire domain. This gives you considerably more space to work with than a typical 2KB cookie.

    However, the size of this storage area can be customized by the user (so a 5MB storage area is not guaranteed, nor is it implied) and the user agent (Opera, for example, may only provide 3MB – but only time will tell.)

    Answered on February 12, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.