diff --git a/.htaccess b/.htaccess index bccb03a..21f3547 100644 --- a/.htaccess +++ b/.htaccess @@ -77,4 +77,48 @@ AddDefaultCharset utf-8 php_value upload_max_filesize 20M php_value post_max_size 30M + + + +# кеширование в браузере на стороне пользователя + +ExpiresActive On +ExpiresDefault "access 7 days" +ExpiresByType application/javascript "access plus 1 year" +ExpiresByType text/javascript "access plus 1 year" +ExpiresByType text/css "access plus 1 year" +ExpiresByType text/html "access plus 7 day" +ExpiresByType text/x-javascript "access 1 year" +ExpiresByType image/gif "access plus 1 year" +ExpiresByType image/jpeg "access plus 1 year" +ExpiresByType image/png "access plus 1 year" +ExpiresByType image/jpg "access plus 1 year" +ExpiresByType image/x-icon "access 1 year" +ExpiresByType application/x-shockwave-flash "access 1 year" + + +# Cache-Control + +# 30 дней + +Header set Cache-Control "max-age=2592000, public" + +# 30 дней + +Header set Cache-Control "max-age=2592000, public" + +# 2 дня + +Header set Cache-Control "max-age=172800, public, must-revalidate" + +# 1 день + +Header set Cache-Control "max-age=172800, private, must-revalidate" + + + +#Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE + +BrowserMatch "MSIE" force-no-vary +BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary \ No newline at end of file -- libgit2 0.21.4