@ppk asks: “OK, suggestions for my next bit of research?” — https://twitter.com/ppk/status/587545743625478144
@rem replies: “@ppk storage. What works in browser, what browsers, what phones, how it changes when *added to home screen", limits, etc. How's that?” — https://twitter.com/rem/status/587566978065367040
Here’s what I whipped up, please add more in the comments:
- localStorage: https://developer.mozilla.org/en-US/docs/Web/API/Storage/LocalStorage / http://dev.w3.org/html5/webstorage/#dom-localstorage / http://dev.w3.org/html5/webstorage/#storage-0
- Chrome Storage (Chrome apps): https://developer.chrome.com/apps/storage
- IndexedDB: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
- WebSQL (although discontinued, still widely available and occasionaly faster or less buggy than IndexedDB): http://www.w3.org/TR/webdatabase/
- Cordova SQLite Plugin (to overcome storage limits): https://github.com/litehelpers/Cordova-sqlite-storage
- compability across a broad browser matrix (hello Mobile Safari)
- storage limits across browsers and OSs
- eviction policies per browser/OS
- storing objects vs. storing text vs. storing binary data / Blobs
-
all the research that went into PouchDB, including:
-
http://offlinefirst.org / https://github.com/offlinefirst/research
IndexedDB/WebSQL browser quirks:
Cool stuff you can do with IndexedDB (Dexie is awesome btw):
IndexedDB 2.0 proposal:
Obscure storage methods:
window.name
hack: https://twitter.com/nolanlawson/status/579006280381173760window.name
): http://brian.io/lawnchair/adapters/One bit of research that hasn't been explored yet AFAIK: it seems "officially" both WebSQL and IndexedDB are ephemeral (see this and this), but in practice I've only heard of iOS randomly deleting data. And even then, it's just hearsay. It would be interesting to know which browsers wipe data, what the threshold is, etc.