okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
331 stars 44 forks source link

Implement offline resource caching #590

Open taoeffect opened 5 years ago

taoeffect commented 5 years ago

Problem

If we are offline we still want to be able to load the app, use it, and display attachments, avatars, etc.

Solution

There are several possible solutions:

I'm leaning toward Service Workers. However, not having full control of the cache is a potential issue in terms of decentralization of data...

Also, if we are trying to support the website working in the browser (i.e. outside of Electron/desktop app), then we need to make sure we can handle recovering from the cache being deleted out from under us.

See also:

EDIT: related: #601 — Handle large files differently

taoeffect commented 5 years ago

This is now almost finished thanks to #593, however we still need to properly handle running out of space.