you can't cache .do file , because it is dynamic content, locaserver just cache static content.

maybe it can cache you wanted like this:

 "entries":{

       {"url": '.'}
  }



On 2009-3-28, at 上午3:01, [email protected] wrote:


Do I just put the .do in the manifest file, something like this:

"entries": [
     { "url": "http://www.company.com/emailsystem/inbox.do"; }
]

and then it will save a static version of the page to the local
machine?

I placed this code in one of my jsps:

<script type="text/javascript" src="<html:rewrite page="/web/static/ js/
gears_init.js"/>"></script>
<script type="text/javascript">
var localServer = google.gears.factory.create('beta.localserver');
var store = localServer.createManagedStore('test-store');
store.manifestUrl = 'manifest.json';
store.checkForUpdate();
</script>

It asked me to allow Gears to run and created the store, but didn't
cache anything.  I guess maybe I'm not really understanding how I can
use this for my situation since all of the samples just use html, js,
and css files.

Reply via email to