64903
Mar 23, 2009, updated at 13:33:19 (UTC)
6862
5
0
ExpiresByType im Apache für .js
Hallo,
ich habe einen Apache Webserver 2.2 auf einem Windows 2003 Server Enterprise Edition laufen.
Folgendes habe ich der httpd.conf hinzugefügt:
LoadModule expires_module modules/mod_expires.so
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/jpeg A86400
ExpiresByType application/x-javascript A86400
ExpiresByType text/css A86400
Alle angegebenen Formate werden nun genau einen Tag im Cache gehalten, außer *.js - Dateien:
ExpiresByType application/x-javascript A86400
^^ Der MIME-Typ müsste aber so korrekt sein oder?
Woran liegts?
MfG
Olli
ich habe einen Apache Webserver 2.2 auf einem Windows 2003 Server Enterprise Edition laufen.
Folgendes habe ich der httpd.conf hinzugefügt:
LoadModule expires_module modules/mod_expires.so
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/jpeg A86400
ExpiresByType application/x-javascript A86400
ExpiresByType text/css A86400
Alle angegebenen Formate werden nun genau einen Tag im Cache gehalten, außer *.js - Dateien:
ExpiresByType application/x-javascript A86400
^^ Der MIME-Typ müsste aber so korrekt sein oder?
Woran liegts?
MfG
Olli
Please also mark the comments that contributed to the solution of the article
Content-Key: 112156
Url: https://administrator.de/contentid/112156
Printed on: April 18, 2024 at 10:04 o'clock
5 Comments
Latest comment