PDA

View Full Version : Offline web page



curtiswren
July 11th, 2009, 03:42 PM
I'm trying cache my iphone web page. To do this, I need to add a mime type for .manifest. On apache, I would do something like this:

AddType text/cache-manifest .manifest

How can I add this to girder's web server? I tried adding the following line to mime.txt, but this didn't seem to have any effect.

.manifest=text/cache-manifest

Any suggestions?

Rob H
July 12th, 2009, 03:12 AM
I'll have to leave this one for Ron - unless anyone else can help before then?

Ron
July 13th, 2009, 06:57 AM
You can add a mime type by editing mime.txt in the <girder>\plugins\webserver directory.

I would suggest you copy this file to
<appdata>\promixis\Girder\5\plugins\webserver

That will prevent an update from overwriting your file.

curtiswren
July 14th, 2009, 01:41 PM
That doesn't seem to work for me. When I point my browser to my .manifest file (http://192.168.1.10/remote.manifest) using firefox, and select Page Info. It tells me the type is text/plain. When I point to http://www.thecssninja.com/demo/offline_webapp/thecssninja.manifest, I get a dialog asking me what to do with this type of file (MANIFEST).

Anything else I can try?

Thanks,

Curt

Ron
July 15th, 2009, 07:36 AM
I've tested this here and it works for me. Use the attached mime.txt file and place it in the <girder>\plugins\webserver directory. Make sure this overwrites the file that is there and also make sure you do NOT have a mime.txt file in your user app_data directory (it takes precedence)

curtiswren
July 15th, 2009, 03:14 PM
You file works! Thanks. I don't know why mine didn't. It looks like the exact same text.

Curt