Commit e590d12679c760eaf98d4fd0f89dd7af082d404e
1 parent
ccc9a8a3
image size
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
.htaccess
@@ -97,6 +97,28 @@ ExpiresByType image/x-icon "access 1 year" | @@ -97,6 +97,28 @@ ExpiresByType image/x-icon "access 1 year" | ||
97 | ExpiresByType application/x-shockwave-flash "access 1 year" | 97 | ExpiresByType application/x-shockwave-flash "access 1 year" |
98 | </IfModule> | 98 | </IfModule> |
99 | 99 | ||
100 | + | ||
101 | +# кеширование в браузере на стороне пользователя | ||
102 | +<IfModule mod_deflate.c> | ||
103 | +AddOutputFilterByType DEFLATE text/plain | ||
104 | +AddOutputFilterByType DEFLATE text/html | ||
105 | +AddOutputFilterByType DEFLATE text/xml | ||
106 | +AddOutputFilterByType DEFLATE text/css | ||
107 | +AddOutputFilterByType DEFLATE application/xml | ||
108 | +AddOutputFilterByType DEFLATE application/xhtml+xml | ||
109 | +AddOutputFilterByType DEFLATE application/rss+xml | ||
110 | +AddOutputFilterByType DEFLATE application/javascript | ||
111 | +AddOutputFilterByType DEFLATE application/x-javascript | ||
112 | +BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
113 | +BrowserMatch ^Mozilla/4\.0[678] no-gzip | ||
114 | +BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
115 | +Header append Vary User-Agent | ||
116 | +RewriteEngine On | ||
117 | +AddEncoding gzip .gz | ||
118 | +RewriteCond %{HTTP:Accept-encoding} gzip | ||
119 | +RewriteCond %{REQUEST_FILENAME}.gz -f | ||
120 | +RewriteRule ^(.*)$ $1.gz [QSA,L] | ||
121 | +</IfModule> | ||
100 | # Cache-Control | 122 | # Cache-Control |
101 | <ifModule mod_headers.c> | 123 | <ifModule mod_headers.c> |
102 | # 30 дней | 124 | # 30 дней |