Closed MartijnR closed 9 years ago
This points estimate is a very big guess.
confirmed that the issue is still present in beta (39) and dev(40) channel of Chrome. It is not present in Canary ( 41.0.2221.0 ).
Chrome only has blob support for indexeddb since v 37
The issue is now also present in Chrome 41.0.2224.3 dev (later version than previous Canary). Wtf? But still not in Canary 41.0.2228.2 canary and 41.0.2229.1 canary. So I guess, Chrome versioning is just confusing for me.
Am carefully optimistic that the Chrome bug with serving media blobs from storage is not present on latest Chrome for Android (Lollipop Dec 5th 2014th). So far so good.
Be careful with a solution like localforage that uses multiple storage solutions. A browser update could lead to data loss (e.g. if the preferred indexedDb becomes available).
Also what I don't like about localforage is that you don't get the fancy indexedDb features such as indexing, keyPaths.
IE doesn't like blobs to be stored as part of an object. Using simple key, value resolved the issue
for Safari, convert Blobs to Base64 and back?? Be prepared for safari adding support in the future, so when retrieving a resource check if it is an instanceof Blob and if not convert to a Blob.
arguments against always storing as base64 (dataURI):
arguments for:
Database cannot be flushed if another tab is using the same database!
Records to do:
For posterity:
Storing the record count in the properties table (per form with index YYYp:stats
) and not in the surveys table for the following reasons
using indexedDb