registrieren registriertes Mitglied


Anzeige

Anzeige

WP Pagespeed und Co.

SEO Tipps und Fragen zu Content Management Systemen wie WordPress, TYPO3, Drupal, Joomla! und Onlineshopsystemen wie Magento, Shopware, xt:Commerce, PrestaShop, JTL-Shop findet Ihr hier.
izzak
PostRank 5
PostRank 5
Beiträge: 245
Registriert: 23.04.2006, 01:29

Beitrag izzak » 25.09.2014, 10:40 WP Pagespeed und Co.

Hallo ihr Lieben,

ich versuche mich gerade im Aufbau unserer regionalen Künstlerwebseite https://www.koozal.de

Pagespeed insight meckert dauernd über die Bildergröße, obwohl die über Jetpackplugin/ WP Server geladen werden und die Seite bei mir zumindest recht schnell lädt, auch mobil.

Das nächste Problem betrifft, Browsercaching und Gzip, hab in der .htacces alles versucht zu aktivieren, funzt aber nicht. Liegts mal wieder an 1u1, da ist sie gehostet?



Wenn euch noch etwas auffällt, gerne her mit Tipps und konstruktiver Kritik.

Meine .htaccess


# 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

# mod_deflate (gzip) aktivieren
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
# ExpiresHeader: verhindert bedingte GET-Anfragen
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 35 days"
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
<filesMatch "\\.(js|js.gz)$">
Header set Cache-Control "max-age=604800, private"
</filesMatch>


### vary header to check if compression is allowed or not

<IfModule mod_headers.c>
Header set Vary Accept-Encoding
</IfModule>

### compression of css and js justintime 1and1

<files *.js.gz>
AddType .text/javascript. .gz
AddEncoding gzip .gz
</files>
<files *.css.gz>
AddType .text/css. .gz
AddEncoding gzip .gz
</files>


### Begin Browser Caching Optimazion 1and1

### Caching schema
<FilesMatch "\.(jpg|jpeg|css|png|js|html|php|swf|flv|gif|pdf|ico|tif|tiff|tga|bmp|shtml|xml)$">
Header set Cache-Control "public, proxy-revalidate, max-age=36288000"
Header set Expires "access plus 1 year"
FileETag MTime Size
</FilesMatch>
ExpiresActive ON
ExpiresDefault "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"

### End: Browser caching of ressource files ###

# 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

Anzeige von: