PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : gzip komprimierung



3DMarkt.at
05.04.2016, 10:04
Hallo ihr lieben

Bin gerade dabei die Seite schneller zu machen und bin auf ein Problem gestoßen. Bei Pagespeed Insights (3dmarkt.at) haben wir einen aktuellen Wert von 70/100 (Desktop). Es wird bemängelt, dass die Startseite nicht komprimiert ist, obwohl die gzip kompresion (backend) aktiviert ist. Wieso funktioniert diese nicht? Muss man zusätzlich noch was aktivieren?

Ich hoffe ihr könnt mir helfen

KlausK
05.04.2016, 22:08
Hierzu habe ich heute was geschrieben: https://ecomservice.interfile.de/threads/1370

3DMarkt.at
11.04.2016, 14:47
hallo KlausK

Ich habe deine Anweisungen befolgt und wir sind bei Pagespeed Insights um 1 Punkt besser :D

Das Problem mit der Komprimierung besteht aber immer noch, obwohl wir das deflate aktiviert haben.

Unsere htaccess:


## Gambio SEO Boost
## www.gambio.de

<ifModule mod_headers.c>
Header set X-Content-Type-Options: nosniff
</ifModule>


RewriteEngine on



RewriteCond %{HTTP_HOST} ^www.3dmarkt\.at [NC]
RewriteRule ^(.*)$ http://3dmarkt.at/$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(default|index)\.(html|php|htm)\ HTTP/ [NC]
RewriteRule ^(([^/]+/)*)(default|main|index)\.(html|php|htm)$ http://3dmarkt.at/$1 [L,R=301]



RewriteCond %{REQUEST_FILENAME} ^(.*)\.(php|css|js|gif|jpg|jpeg|png)$ [NC]
RewriteRule ^(.+) - [L]

RewriteCond %{REQUEST_URI} (.*)?/admin/(.*)
RewriteRule ^(.+) - [L]

RewriteCond %{REQUEST_URI} (.*)?/images/(.*)
RewriteRule ^(.+) - [L]

RewriteCond %{REQUEST_URI} (.*)?/templates/(.*)
RewriteRule ^(.+) - [L]


RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+) - [L]

RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^(.+) - [L]


##boosted CONTENT
RewriteRule (^[a-z]{2})/(.*/)?info/([A-Za-z0-9_-]+)\.html.* shop_content.php?language=$1&gm_boosted_content=$3&%{QUERY_STRING} [PT,L]
RewriteRule (.*/)?info/([A-Za-z0-9_-]+)\.html.* shop_content.php?gm_boosted_content=$2&%{QUERY_STRING} [PT,L]

##boosted PRODUCTS
RewriteRule (^[a-z]{2})/(.*/)?([A-Za-z0-9_-]+)\.html product_info.php?language=$1&gm_boosted_product=$3&%{QUERY_STRING} [PT,L]
RewriteRule (.*/)?([A-Za-z0-9_-]+)\.html product_info.php?gm_boosted_product=$2&%{QUERY_STRING} [PT,L]

##boosted CATEGORIES
RewriteRule (^[a-z]{2})/(.*/)?([A-Za-z0-9_-]+)/?.* index.php?language=$1&gm_boosted_category=$3&%{QUERY_STRING} [L]
RewriteRule (.*/)?([A-Za-z0-9_-]+)/?.* index.php?gm_boosted_category=$2&%{QUERY_STRING} [L]



<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>



<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType text/html "access plus 1 week"
ExpiresByType text/xml "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/js "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
</IfModule>

3DMarkt.at
14.04.2016, 08:05
495

So sieht es zur Zeit aus. Er zeigt immer noch an dass die Komprimierung nicht eingeschaltet ist. In der php.info steht bei _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate, sdch.
Woran kann es liegen, dass Pagespeed Insights dies nicht erkennt?