7 messages in com.googlegroups.google-gearsRe: [google-gears] How to partly upda...
FromSent OnAttachments
philt25 Mar 2008 16:57 
Aaron Boodman25 Mar 2008 17:06 
philt26 Mar 2008 08:30 
Brad Neuberg26 Mar 2008 11:32 
Aaron Boodman26 Mar 2008 12:27 
philt27 Mar 2008 05:00 
Scott Hess02 Apr 2008 11:19 
Subject:Re: [google-gears] How to partly update a managed resource store?
From:Aaron Boodman (a.@google.com)
Date:03/25/2008 05:06:00 PM
List:com.googlegroups.google-gears

On Tue, Mar 25, 2008 at 4:57 PM, philt <phil@teuwen.org> wrote:

I wrote a manifest php script such that it sends me only the list of pages modified since my last visit (I send it my current version as a GET parameter). But then locally all the other pages are deleted, only the new ones are there.

The other option, downloading all the wiki pages every time, is overkilling. How can I only refresh a part of the resource store without losing what's already there?

Hi Phil, very cool idea to offline enable your wiki.

Gears is designed for the server to send all pages in the manifest each time. For each URL in the manifest, it issues an HTTP conditional GET. Only the changed pages will be downloaded.

So long as the server supports if-modified-since (which I assume MediaWiki does), updates should be much faster than the first capture.

- a