Re:Basket.js: A simple script loader that caches scripts wit...
by shantanubala on Friday March 02, 2012 @04:19PM
(#3658429)
Caching assets in localStorage definitely isn't a "best practice," and seems like something that should only be done when necessary.
One of the best uses for localStorage though, is caching client-side templates. If you're building an app that's got a ton of different models and templates for each one, it makes your application a lot more efficient to lazy-load them as needed and cache them in localStorage for later use with versioning and cache invalidation.
IMHO, edge cases aside, most people shouldn't do this.