DEV Community

Discussion on: Please Stop Using Local Storage

Collapse
 
meisekimiu profile image
Natalie Martin

I've found one of the best uses for (local|session)Storage is just to cache data. If you have a data set that is going to remain static for the entire application session but still needs to be fetched asynchronously, sessionStorage is great for caching it (unless it somehow contains sensitive data of course...).

Collapse
 
rdegges profile image
Randall Degges

Exactly! I love it for that. This is what I use it for as well.