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
returnnull
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.