Website-Beschleunigung durch Expires-Header

2013-09-17 09:28 (2013-09-17 09:28)

Habe Google PageSpeed auf unsere Sites losgelassen, und in fast allen Websites das “Expires”-Module
aktiviert. Funzt tatsächlich ein wenig schneller. Die Seiten sind jetzt so bei 1-2 sec Ladezeit übers Netz angelangt (Messung ohne Browsercache durch Firebug/Net bzw. PageSpeed Plugin).

PageSpeed empfiehlt, sowohl Expires als auch Last-Modified zu verwenden. Ist natürlich bei der Entwicklung etwas umständlich.

(Vgl. Artikel von Amooma)

In den conf-Dateien:

# BEGIN EXPIRES
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType    image/jpeg "access plus 1 month"
    ExpiresByType    application/x-javascript "access plus 1 month"
    ExpiresByType    application/javascript "access plus 1 week"
    ExpiresByType application/x-icon "access plus 1 year"
</IfModule># END EXPIRES

Hab ich irgendwo gefunden…

ABER: Funktioniert zu gut, jetzt hab ich als ExpiresDefault “M plus 3 minutes” angegeben,
damit gewisse Zope-Seiten besser funken

Janos Bekesi

Admin, Software

---
---