Re: follow up on service workers for publishing platform

On Tue, Dec 1, 2015 at 4:50 PM, Ivan Herman <ivan@w3.org> wrote:
>
> I understand this for Acme. However, thinking it further in direction of a
> more sophisticated reader: is it necessary to store all the file references?
> After all, I would expect the Service Worker may find out on the fly that a
> resource is to be cached.
>
> This may be important for the production site. This means I do not have to
> list the references of all the images, js and css files, etc, just the 'top
> level' files to trigger the process and those could be cached.
>
> Of course, there is a danger that the reader would cache too much, eg,
> remote references that the content refers to. So maybe the manifest could
> contain some sort of URI patterns, saying to the reader: "if the URI matches
> one of these patterns, cache it".
>

I would assume that all of the reading system's app resources would be
cached "immediately" (i.e. as early as possible in the bootstrap
process), so that the reading system itself is available offline.
However, publication content would be cached according to a particular
strategy (on-demand vs. preload, LRU eviction, etc.), in terms of
offline-ing multiple publications, but also in terms of offline-ing
resources within a given publication (partial fetch vs. full cache).
Dan

Received on Tuesday, 1 December 2015 17:04:34 UTC