Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Can PWAs not switch to using IndexedDB which seems like it’s more purpose-built for this use case?

IndexedDB is also subject to the 7 day limit. Leaving no persistent storage for web apps at all.



Ah, I missed that in the original documentation and most of the discussion I've seen has been around localStorage. Thank you!


It's a bit confusing because there are two similar terms being used to describe this. First is "local storage" which refers to any of the storage, as long as it's on the local device. Second (which you used) is "localStorage", which refers to specifically the window.localStorage API (which you are right about, has been described as a volatile short-term memory for apps).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: