Hi,
ich entwickle gerade eine WebApp für iOS Geräte (iPod touch + iPhone) und möchte diese offline verfügbar machen, dank HTML5 geht das ja auch realtiv einfach mit dem Cache. Ich habe folgendes Tutorial benutzt:
thecssninja.com/javascript/h … the-iphone
In die Manifest Datei habe ich alles Wichtige hereingeschrieben, manifest=“xx.manifest” habe ich auch in den html Tag geschrieben, wie im Tutorial beschrieben. Trotzdem kann ich mir die WebApp bisher nur Online anschauen. Nun zu meinem Problem:
“Now the one issue that catches a lot of people when trying this out is not setting up the mime type correctly in their chosen web server. Whether it be IIS, Apache or something else, you’ll need to make sure that the .manifest file is fed through as text/cache-manifest. For example in IIS the .manifest mime type is actually already declared to serve .manifest files as application/x-ms-manifest for offline webapps to work this will need to be changed to mime type text/cache-manifest.”
Ich habe das ganze mal nachgetestet:
web-sniffer.net/
Wenn ich hier meine Manifest Datei einfüge, bekomme ich als Content-Type folgendes angezeigt: text/plain
Damit ich das ganze Offline sehen kann muss dort folgendes stehen: text/cache-manifest
Wie kann ich das bei Apache ändern?
Sorry für die lange Beschreibung :o - ich kenne mich mit PHP nicht gut aus!