jQuery-Image-Cache icon indicating copy to clipboard operation
jQuery-Image-Cache copied to clipboard

What if localStorage is full?

Open exside opened this issue 11 years ago • 0 comments

Hi,

just found your plugin because I had the same idea =), so great somebody else thought about this, thank you!

I'm just on the way of implementing it, but one question is in my head: What happens when the localStorage limit of 5MB is reached?

As of: http://stackoverflow.com/questions/13567509/what-happens-when-localstorage-is-full

it seems then could no new images be saved to the local storage, which probably would result in unexpected stuff...

so my question is, did you ever get to this point (I can imagine I could, trying to cache a large amount of thumbnails ~500, each 6kb and they can vary, so max ~1500, which leads to 500x6 = 3000kb and 1500x6 = 9000kb) and how could this possibly be handled by your plugin? any ideas?

exside avatar Apr 15 '13 19:04 exside