Cachen im Browser

slimox

Mitglied
Hallo zusammen

Ich schaffe es einfach nicht, dass es mir die JS Datei im Browser cacht. Meta Tags und htaccess habe ich gesetzt... ?

Code:
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>
HTML:
<meta http-equiv="expires" content="<?php echo date('r', mktime(date("H"), date("i"), date("s"), date("n"), date("j") + 1, date("Y")));?>">

<meta http-equiv="cache-control" content="public" />

Hat jemand eine Idee? Unter diesem Link könnt ihr es selbst anschauen: http://www.edoobox.ch:p

Danke für alle AW!
 
Warum das mit der htaccess-Datei nicht funktioniert, aber der Meta-Tag bezieht sich nur auf die HTML-Datei und nicht auf die Javascript-Datei.
 
Gibt es eine Möglichkeit, im Browser zu sehen was im Cache ist und was er neu laden wird? Oder was für Imformationen der Browser vom Server bekommt?
 

Neue Beiträge

Zurück