Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9090281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:20:18+00:00 2026-06-16T22:20:18+00:00

I have found articles regarding cache behaviour so I can only assume that it’s

  • 0

I have found articles regarding cache behaviour so I can only assume that it’s not much different but I wanted to make sure.

I have read that most browser have 5MB (give or take) for localStorage and I was interested in what would be the behaviour of the browsers?

I understand every browser acts differently but I’m interested mostly in Safari, Chrome and Firefox (as those are the ones I consider as browsers).

  • Will the browsers mentioned above delete data from my website or it will choose "the oldest" or something of the sort?
  • Will my item be saved in such case?

And the most important :

  • Lets say I "abuse" the localStorage on my website trying to use it all up, and in the same page I’m filling it up and trying to save more. Will I get a warning? Will the getItem return null when this happens or is it somehow saved in memory?

  • What happens if I try and save an item larger than the localStorage size?

Answered: answer can be found here

  • Can the same exact behaviour be expected from sessionStorage which allegedly should be the same?

I know this is a lot of questions but I’m trying to understand all that’s related to the subject, I’d be thankful for any part of the question you can answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:20:19+00:00Added an answer on June 16, 2026 at 10:20 pm

    Firstly, some useful resources:

    • Web
      Storage Support Test
      – has a table comparing data storage quotas
      between browsers.
    • Simple
      localStorage quota test
    • Summary of localStorage browser behaviour
    • W3C spec – indicating how a user agent (e.g. browser) should behave (both localStorage and sessionStorage).

    In answer to your question, desktop browsers tend to have an initial maximum localStorage quota of 5MB per domain. This can be adjusted by the user in some cases:

    • Opera: opera:config -> Domain Quota For localStorage
    • Firefox: about:config -> dom.storage.default_quota

    In Chrome, there doesn’t seem to be a way for the user to adjust this setting although like Opera, localStorage data can be edited directly per domain using the Developer Tools.

    When you try to store data in localStorage, the browser checks whether there’s enough remaining space for the current domain.
    If yes:

    • The data is stored, overwriting values if an identical key already exists.

    If no:

    • The data is not stored and no existing data is overwritten.
    • A QUOTA_EXCEEDED_ERR exception is thrown.

    In this case, getItem(key) will return the last value that was successfully stored, if any.

    (Opera is slightly different in that it displays a dialog box giving the user the choice of increasing storage space for the current domain.)

    Note that sessionStorage and localStorage are both implementations of the same Storage object so their behaviour is similar and error handling is the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found a number of articles such as this one that talk about
I have tried to find some articles on my problem, but haven't found anything
I have found several articles on the Web regarding drawing a dashed line in
It is well known that different people have different aptitudes regarding various programming paradigms
I have been looking around on the web and found some articles about the
I have done some looking and I found this: http://www.codeproject.com/Articles/14439/The-ScrollableListBox-Custom-Control-for-ASP-NET-2 but to me it
I have found Okapi Similarity measure can be used to calculated document similarity from
I have found that I have no problem using require to load something like
I have found that call stack helps in finding the line number of a
There are many articles in this site regarding my question. I have a matrix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.