Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase size of the localStorage for one domain name?

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.

like image 596
Foker Avatar asked Aug 30 '13 10:08

Foker


People also ask

Is LocalStorage tied to domain?

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.

Can clients modify LocalStorage?

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.

What is the maximum size of LocalStorage?

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.

How do I increase local storage in Chrome?

Edit chrome/common/extensions/api/storage. json, change the "local" QUOTA_BYTES value, and rebuild chrome.


1 Answers

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)

like image 85
U.P Avatar answered Sep 29 '22 16:09

U.P