[whatwg] Offline Web Apps with Open-Ended URI Spaces (was Re: Offline Web Apps)
robert at ocallahan.org
Fri Sep 21 03:03:28 PDT 2007
On 9/20/07, Maciej Stachowiak <mjs at apple.com> wrote:
> 2) Many offline web apps will let you want to make changes, including
> not just changing existing items, but also creating new items. To do
> this, at minimum there needs to be an API to inject a new resource
> into the offline cache programatically, with the data explicitly
This violates the principle that the offline cache is a cache. It creates
the issue of how to reconcile server pages with client-stored pages.
6) It's potentially costly to download data mulltiple times, so if you
> pull the remote data into a local database, you won't also want to
> pull every page reflecting that data, instead you will want to
> generate templates client-side and insert them into the offline cache.
> However, it seems like a relatively small step from there to having a
> single fallback page to be used for all URIs that are part of the app
> but haven't gotten downloaded in the course of normal use. And this
> would be a huge optimization, since it would save the client the need
> to manually generate each page for a resource of interest that has not
> yet been visited.
> Given point #1, I think this should be based on textual prefix
> matching of the URI, not just dropping the query (the scheme and
> authority sections should be treated specially, of course, it should
> not be allowed to have a fallback page in someone else's security
> domain). This will allow matching paths and also matching only
> specific kinds of queries (where the first parameter is set to some
> specific value, say). However, to make offline and online mode diverge
> as little as possible, I think perhaps such fallback pages should
> apply only when offline. When online, the UA should go to the real
> page. With the prefix-based fallback page solution, I'm not sure it
> will be necessary to also support individual client-generated pages.
It sounds reasonable to me, a lot better than option 2).
"Two men owed money to a certain moneylender. One owed him five hundred
denarii, and the other fifty. Neither of them had the money to pay him back,
so he canceled the debts of both. Now which of them will love him more?"
Simon replied, "I suppose the one who had the bigger debt canceled." "You
have judged correctly," Jesus said. [Luke 7:41-43]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg