Zum Inhalt springen

Problem bei GZIP-Komprimierung

Erstellt am 25. September 2011 · Noch keine Antworten

Tags: Frage

SteffenKaPunkt ·

Hallo Leute,

auf der Seite http://www.mittelschule-schkeuditz.de/ habe ich ein Problem mit der GZIP-Komprimierung. Es werden zwar alle CSS- und JS-Dateien gzip komprimiert, nicht aber die Seite (HTML) als solches. Mit PageSpeed bzw. YSLOW kann man das sehr gut erkennen.

Ich nutze übrigens auch den scriptmerger in der aktuellsten Version. Meine .htaccess sieht (auszugsweise) so aus

RewriteEngine On
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^typo3$ /index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php [L]

#### Static File Cache #####
RewriteCond %{REQUEST_METHOD} GET

# Änderungen ab TYPO3 Release 4.4:
<FilesMatch "\.js\.gzip$">
AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
AddType "text/css" .gzip
</FilesMatch>

AddEncoding gzip .gzip
AddEncoding x-gzip .gz
RewriteCond %{HTTP:accept-encoding} !gzip [NC]
RewriteRule ^typo3temp/scriptmerger/compressed/(.+)\.gz\.(js|css) typo3temp/scriptmerger/uncompressed/$1.$2 [L,NC]

# Expires Header + Removal of ETag
<FilesMatch "\.(ico|png|gif|js|css|jpg|jpeg|swf)">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/x-png "access plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
</IfModule>
FileETag MTime Size
<IfModule mod_headers.c>
FileETag none
Header unset Last-Modified
Header set Vary Accept-Encoding
</IfModule>
</FilesMatch>

Kann mir hier jemand einen Hinweis geben, was hier nicht korrekt ist?