3 ms·
Evercookie's goal is to store data indelibly, regardless of user intention. IronDB's goal is to store data reliably, e.g. in the face of storage eviction, but
by grun 8y ago
Evercookie's goal is to store data indelibly, regardless of user intention.
IronDB's goal is to store data reliably, e.g. in the face of storage eviction,
but not against user intention. If the user clears all browsing data, that
willful action is respected.
Thank you for your feedback. I'll clarify this in the docs.
- laurent123456 8y agoWhy do we need a library to store data reliably? Aren't browsers API already reliable? Does the LocalStorage API for example sometimes fails to store its data properly?
- grun 8y agoClearing cookies is a common user action. Even for relatively non-technical users. And under storage pressure, browsers evict data stored in IndexedDB, LocalStorage, and/or SessionStorage. See https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa#how_does_cache_eviction_work https://developers.google.com/web/fundamentals/instant-and-o... IronDB is resilient in the face of such events. Thank you for your feedback. I'll add an explanation about such in the documentation.
- tptacek 8y agoThat's the answer I was looking for, thanks. The intuition I have is that if someone deletes something from localStorage (or clears localStorage altogether), they want that data gone.
- chx 8y agoWhat about https://developers.google.com/web/updates/2016/06/persistent-storage https://developers.google.com/web/updates/2016/06/persistent...
- grun 8y agoPersistent storage requires explicit user permission. IronDB doesn't. See https://developers.google.com/web/updates/2016/06/persistent-storage#how_do_i_make_my_storage_persistent https://developers.google.com/web/updates/2016/06/persistent.... Great point, though. I'll highlight this in the documentation. Thank you.
- staticvar 8y agoThose docs are dated unfortunately. For example, in my tests on multiple android devices and Mac OS the storage limit on Chrome is closer to 20% of total disk size and you don't need to prompt the user for persistent storage like you prompt for access to gps.
- staticvar 8y agoIf anyone could point to an up to date docs around storage eviction in browsers it would be greatly appreciated. It's been a big hit to our team's confidence in the "use the platform" mentality that this is not accurately documented.
- edoceo 8y agoI remember reading a 5MB limit some place (ages ago) and I'm not able to find the reference at the time. My team has been assuming that is true (for local,session)Storage and so far haven't been bitten. Only occasionally have we even gotten close to that size. You can also shove loads of data in the DOM. Edit: one of the old refs - 10MB https://www.html5rocks.com/en/tutorials/offline/quota-research/ https://www.html5rocks.com/en/tutorials/offline/quota-resear...
- deleted 8y ago[deleted]