3 ms·
> IndexedDB is also necessary for progressive web apps localStorage doesn't work for progressive web apps?
by remram 5y ago
> IndexedDB is also necessary for progressive web apps
localStorage doesn't work for progressive web apps?
- afavour 5y agoDepends how complex your needs get, IMO. localStorage is a key/value store, IndexedDB is a (basic) database. (localStorage also ties up the main thread whenever its in use, which also becomes relevant if you're using it a ton)
- tehbeard 5y agoIt works the same way the glove compartment in your car works when driving for a holiday / to see relatives.... You grab stuff easily out of it, but not much'll stay in there.
- cyanydeez 5y agoLocal storage is typically 5mb. Not sure what PWA would survive on that.
- remram 5y agoI see, it has a lower quota and only IndexedDB has a mechanism to request persistence. Thanks.