• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Server cache refresh

unique24

Mitglied
Hallo,

ich habe einen Magento 2 shop und möchte statische Bilder und CO besser cachen. In der .htaccess habe ich nun:
Rich (BBCode):
<IfModule mod_expires.c>

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

    ExpiresDefault "access plus 1 year"
    ExpiresByType text/html A0
    ExpiresByType text/plain A0

    ExpiresActive On

    # Images
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
    ExpiresByType image/x-icon "access plus 1 year"

    # Video
    ExpiresByType video/mp4 "access plus 1 year"
    ExpiresByType video/mpeg "access plus 1 year"

    # CSS, JavaScript
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"

    # Others
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"


</IfModule>


Das heißt das der Browser beim Kunden ein .jpeg zum Beispiel 1 Jahr zwischenspeichert, bis er es neu herunterladet?

Was wenn ich am Server nun ein Bild ändere? Kann ich den Cache zurücksetzen?

Danke!
 
Werbung:
Zurück
Oben