'How to increase local storage space to unlimited for a firefox add-ons?
I am creating a Firefox add-on to store data in the local-storage. But it is limited to 5MB. I want it to be unlimited. Is there any way to make the local-storage space unlimited ?
Thanks in advance.
Solution 1:[1]
Like others said it is not possible to allocate unlimited space for local storage, each browser comes with it's own limitations.
Here's a suggestion, local Storage is GRATE for Key, Value pairs, so for any data that exceeds 5MB limit a better approach would be to use a database such as IndexedDB.
Solution 2:[2]
It is not possoble (its a browser running on users machine not your own).. each browser gives a fixed space for local storage, that you will not be able to increase. also read these links
Solution 3:[3]
You can have an unlimited storage with WebSQL on Chrome extension only.
Solution 4:[4]
A lot of time had past since this question was asked but since googling still points here, I'm adding suggestion to use IndexedDB
as a client side storage instead of LocalStorage to bypass 5MB quota limit.
This is built in DB solution for browsers, with benefits of fast data insertion
and big storage capacity
(about 1GB
or more
if needed, limit is only the hard drive)
There is a lot of good recourses on using IdexedDB (YouTube, GitHub, Articles)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Adi |
Solution 2 | Community |
Solution 3 | devside |
Solution 4 | Near Future |