Ecommerce, SEO, Gadgets, Mac und Internet Themen

Expires-Header aktivieren

Kategorie: web-development Autor: bei Google+

add expires header
Expires Header: Gives the date/time after which the response is considered stale

add following to your .htaccess file for enabling expire-header (expire apache module must be installed):

<IfModule mod_expires.c>
    # turn on the module for this directory
    ExpiresActive on
    # set default
    ExpiresDefault "access plus 24 hours"

    # cache common graphics
    ExpiresByType image/jpg "access plus 1 months"
    ExpiresByType image/gif "access plus 1 months"
    ExpiresByType image/jpeg "access plus 1 months"
    ExpiresByType image/png "access plus 1 months"

    # cache CSS
    ExpiresByType text/css "access plus 1 months"

    # cache other filetypes
    ExpiresByType text/javascript "access plus 1 months"
    ExpiresByType application/javascript "access plus 1 months"
    ExpiresByType application/x-shockwave-flash "access plus 1 months"
</IfModule>

[via]



Bewertungen für: Expires-Header aktivieren
1 Sterne2 Sterne3 Sterne4 Sterne5 Sterne (Keine Bewertungen bisher)
Loading ... Loading ...

Das könnte noch interessant sein:




Magst Du mit mir und Anderen über dieses Thema diskutieren? Schreib doch etwas ins Kommentar und lass uns darüber reden!


wpSEO optimiert Blogs für Suchmaschinen - automatisch und effizient.
Viktor Dite Mizine on Twitter Viktor Dite on Google+