I want to use browser local-storage in my web application to store footer that is coming from database. I want that if data is already in local-storage then hit should not go to database.
So here my question is that how much contents I can save with local-storage?
I am planing it to use at more places in my website where html contents are coming from database.. Are there any limitations?
If yes then how i can check that localstorage is full?
Code I am using here
if (typeof (Storage) !== void (0)) {
var key = "footer";
if (localStorage[key] != undefined && localStorage[key] != "") {
BuildFooter(localStorage[key]);
return;
}
else {
//Get from database
}}
Thanks Dalvir