Leverage browser caching

Written by

# BEGIN Expires

ExpiresActive On
ExpiresDefault “access plus 1 seconds”
ExpiresByType text/html “access plus 1 seconds”
ExpiresByType image/gif “access plus 2592000 seconds”
ExpiresByType image/jpeg “access plus 2592000 seconds”
ExpiresByType image/png “access plus 2592000 seconds”
ExpiresByType text/css “access plus 2592000 seconds”
ExpiresByType text/javascript “access plus 2592000 seconds”
ExpiresByType application/x-javascript “access plus 2592000 seconds”

# END Expires

# BEGIN Caching

Header set Cache-Control “max-age=2592000, public”

Header set Cache-Control “max-age=2592000, public”

Header set Cache-Control “max-age=2592000, private”

Header set Cache-Control “max-age=2592000, public, must-revalidate”

Header set Cache-Control “max-age=1, private, must-revalidate”

# END Caching

Article Categories:
Uncategorized

Leave a Comment

Ваш e-mail не будет опубликован. Обязательные поля помечены *

Menu Title