Hallo,
ich habe heute mal meine Seite mit PageSpeed getestet und der hat sofort rumgemeckert, dass ich Browser Caching nutzen soll.
[COLOR=#339933]<[/COLOR]IfModule mod_expires.[COLOR=#006633]c[/COLOR][COLOR=#339933]>[/COLOR] [COLOR=#666666]// if-Anweisung, die überprüft ob das Apache Modul "mod_expires" überhaupt aktiv ist[/COLOR]
ExpiresActive On [COLOR=#666666]// Aktiviert das Modul "mod_expires" für dieses Verzeichnis[/COLOR]
ExpiresByType image[COLOR=#339933]/[/COLOR]jpg [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für .jpg-Bilddateien auf 7 Tage setzen[/COLOR]
ExpiresByType image[COLOR=#339933]/[/COLOR]png [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für .png-Bilddateien auf 7 Tage setzen[/COLOR]
ExpiresByType text[COLOR=#339933]/[/COLOR]css [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für CSS Stylesheet-Dateien auf 7 Tage setzen[/COLOR]
ExpiresByType text[COLOR=#339933]/[/COLOR]javascript [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für JavaScript-Dateien auf 7 Tage setzen (alt)[/COLOR]
ExpiresByType application[COLOR=#339933]/[/COLOR]x[COLOR=#339933]-[/COLOR]javascript [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für experimentelle/nicht-standardisierte JavaScript-Dateien auf 7 Tage setzen[/COLOR]
ExpiresByType application[COLOR=#339933]/[/COLOR]javascript [COLOR=#0000FF]"access plus 7 days"[/COLOR] [COLOR=#666666]// Ablaufdatum für gecachte JavaScript-Dateien auf 7 Tage setzen (neu)[/COLOR]
[COLOR=#339933]</[/COLOR]IfModule[COLOR=#339933]>[/COLOR] [COLOR=#666666]// if-Anweisung schliessen
[/COLOR][size=10][FONT=arial]Nach dem ich das eingefügt habe, hat PageSpeed nicht mehr rumgemeckert, aber dann kam ein "500 Fehler". Hat jemand eine Idee, wie man in der htaccess richtig cachet?
LG[/FONT][/SIZE][COLOR=#666666][/COLOR]