Browser Caching für Joomla! 3.x aktivieren
Sie haben ihre Webseite durch Google prüfen lassen und bekommen nun mitgeteilt, dass Sie das Browser-Caching aktivieren sollen.
Hier lesen Sie wie es am einfachsten funktioniert:
- Nutzen Sie einen FTP-Zugang und begeben Sie sich ins Grundverzeichnis ihrer Joomla!-Installation.
- Kopieren Sie die .htaccess-Datei, um im Notfall darauf zurück greifen zu können
- Öffnen Sie die .htacces-Datei für die Bearbeitung mit einem Editor.
- Fügen Sie folgenden Code am Ende der .htaccess-Datei ein:
< IfModule mod_expires.c >
ExpiresActive On
ExpiresDefault "access plus 1 month 1 days"
ExpiresByType text/html "access plus 1 month 1 days"
ExpiresByType image/gif "access plus 1 month 1 days"
ExpiresByType image/jpeg "access plus 1 month 1 days"
ExpiresByType image/png "access plus 1 month 1 days"
ExpiresByType text/css "access plus 1 month 1 days"
ExpiresByType text/javascript "access plus 1 month 1 week"
ExpiresByType application/x-javascript "access plus 1 month 1 days"
ExpiresByType text/xml "access plus 1 seconds"
< /IfModule >Bitte die Leerzeichen nach den Klammern < und vor den Klammern > entfernen!
- Speichern Sie die überarbeitete .htaccess-Datei.