Hi, ich habe ein billigeres Paket von 1&1 und da läuft das Browsercaching ("leverage browser caching") laut http://gtmetrix.com/ einwandfrei. Was nicht klappt ist das automatische gzip für css oder js.
Das Browsercaching hatte ich über die .htaccess aktiviert:
# Browsercache Einstellungen
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg "access plus 1 month"
ExpiresByType font/svg "access plus 1 month"
ExpiresByType font/otf "access plus 1 month"
ExpiresByType font/eot "access plus 1 month"
ExpiresByType font/ttf "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresDefault "access plus 3 minutes"
</IfModule>
# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf|svg|eot|otf|ttf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>
# END Cache-Control Headers
Alles anzeigen
Ladezeiten von max 2.44s finde ich aber schon sehr gut.
Das Browsercaching lohnt sich für statische Elemente, die nicht oft verändert werden schon, finde ich.
MfG