views:

128

answers:

1

For creating an offline version of a bunch of linked web pages I use an app.manifest-file that lists all the web pages for offline caching.

I would like it that the app.manifest file is not fetched every time when a user jumps from one web page to another. Most of the web pages will never be updated once the application is on the iPhone. Also the target audience is abroad so roaming costs could add up while users are using my "web app".

Searching the internet made me think in the direction of forcing an offline mode in Mobile Safari using Javascript but I don't know if this is the right way to go or if it is even possible.

Does anyone have any other and/or better ideas and suggestions on how to do this?

A: 

I would try setting an expires header to the future for the manifest file. That should theoretically prevent the browser from making a request for it. Never tried it, though.

Rakesh Pai
Just tried it but that doesn't seem to help. My headers read:HTTP/1.1 200 OKDate: Sat, 10 Apr 2010 10:53:06 GMTServer: Apache/2.0.59 (Unix) PHP/5.2.1 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7lX-Powered-By: PHP/5.2.1Expires: Sat, 26 Jul 2017 05:00:00 GMTContent-Type: text/cache-manifestbut the log file still indicates a GET-request for each link I click.
Kristof