Apache mime.types ändern

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!

httpd.apache.org/docs/2.2/mod/mo … ml#addtype

Wäre dann mein Befehl oder nicht?

Wie führe ich den aus? Beschreibung wäre nett.

Wäre dann mein Befehl oder nicht?

Wie führe ich den aus? Beschreibung wäre nett.

In welchem Context diese Anweisung auftauchen darf, ist dort beschrieben - und das Wort Context sogar verlinkt.

Erstmal danke für die Antwort.
Ich habe jetzt folgendes in eine .htaccess Datei geschrieben:

.htaccess ist im selben Verzeichniss wie die Manifest Datei, trotzdem wird mir als Content-Type immer noch text/plain anstelle von text/cache-manifest angezeigt.

Kannst du mir noch einen Tipp geben? :slight_smile:

/edit:

Habe ich auch schon probiert.

/edit2:
Habe es geschafft :o