Wenn ich bei Strato das Webmastertool nutze und dort auf der Seite "PageSpeedInsights" meinen Blog analysiere, werde ich aufgefordert, die Komprimierung (gzip / deflate) zu aktivieren.
Ist sicherlich sinnvoll,- dachte allerdings, dass ich das in der htaccess allerdings in die Wege geleitet habe.
Ist an dem Code was falsch??
meine .htaccess :
Apache Configuration
# Gzip<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</IfModule>
# Browsercache
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/jpeg "access plus 2 weeks"
ExpiresByType image/png "access plus 2 weeks"
ExpiresByType image/gif "access plus 2 weeks"
ExpiresByType application/x-shockwave-flash "access plus 2 weeks"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType text/javascript "access plus 2 weeks"
ExpiresByType application/javascript "access 2 weeks"
ExpiresByType application/x-javascript "access plus 2 weeks"
ExpiresByType text/html "access plus 60 seconds"
ExpiresByType application/xhtml+xml "access plus 60 seconds"
</IfModule>
# Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
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>
# E-Tags entfernen
<ifModule mod_headers.c>
Header unset ETag
</ifModule>
# Zugriff auf Dateien verbieten / WordPress Sicherheit
<Files wp-config.php>
order allow,deny
deny from all
</Files>
<Files .htaccess>
order allow,deny
deny from all
</Files>
Options All -Indexes
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Alles anzeigen