I heard before, that max size of localStorage is 5bm to one domain name, but it's too small for me. Can i increase size if localStorage? I should notice that my app work on just one device - it's a terminal, with chromium.
Since localStorage stores key-value pairs that are domain specific, you'd quickly run into problems if you host multiple apps on the same domain, all of which are making use of local storage to store some of their app specific data.
Go to the website you wish to modify its localstorage. Enter your console (I press F12 in Chrome or Edge). Press the "Application" tab on top. Choose localstorage on the menu and then the website address underneath.
It is limited to about 5MB and can contain only strings. LocalStorage is not accessible from web workers or service workers. Cookies have their uses, but should not be used for storage.
Edit chrome/common/extensions/api/storage. json, change the "local" QUOTA_BYTES value, and rebuild chrome.
The value of 5MB is not always true. The local storage size varies from browser to browser (2.5 MB per origin in Google Chrome; 5 MB per origin in Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer).
You can get more info about local storage for each browser here. You can also test your browser's local storage here.
If you have a lot of data to store and local storage is not sufficient for you, you can always try Web SQL
(available in WebKit and Opera) or IndexedDB
(available in all modern decent browsers)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With