Re: local storage vs cache

Jonas Sicking <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <CA+c2ei92XypNNfMUwQB7ZJGRBx1h-dw6S2h4zMXJ_cPQiFi7uA@mail.gmail.com>
On Mon, Mar 5, 2012 at 9:49 PM, Brian Smith <[email protected]> wrote:
> Jonas Sicking wrote:
>> I think the thunderbird scenario is a somewhat simpler one. The
>> solution there is basically AppCache.
>
> What about the caching of all the emails? And the handling of unsent drafts in offline mode? You definitely don't want to automatically garbage collect an unsent email.

For "data" like that I would normally say IndexedDB is the solution.
You're not going to fetch those using <img src=...> anyway so there's
no point in having them represented as a URL.

Though possibly things are different for a webmail app like gmail.

/ Jonas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.