... | ... | @@ -33,6 +33,7 @@ FileETag None |
|
|
Header set Connection keep-alive
|
|
|
</ifModule>
|
|
|
|
|
|
|
|
|
<IfModule mod_deflate.c>
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
AddOutputFilterByType DEFLATE text/html
|
... | ... | @@ -49,52 +50,59 @@ FileETag None |
|
|
AddOutputFilterByType DEFLATE image/svg+xml
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
<IfModule mod_gzip.c>
|
|
|
mod_gzip_on Yes
|
|
|
mod_gzip_dechunk Yes
|
|
|
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
|
|
|
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
|
|
|
mod_gzip_item_include handler ^cgi-script$
|
|
|
mod_gzip_item_include mime ^text/.*
|
|
|
mod_gzip_item_include mime ^application/x-javascript.*
|
|
|
mod_gzip_item_exclude mime ^image/.*
|
|
|
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
|
|
|
mod_gzip_item_exclude rspheader ^Content-Encoding:.gzip.
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
<IfModule mod_expires.c>
|
|
|
ExpiresActive On
|
|
|
ExpiresByType text/css "access plus 1 week"
|
|
|
ExpiresByType text/javascript "access plus 1 week"
|
|
|
ExpiresByType text/css "access plus 1 year"
|
|
|
ExpiresByType text/javascript "access plus 1 year"
|
|
|
ExpiresByType text/html "access plus 1 week"
|
|
|
ExpiresByType application/javascript "access plus 1 week"
|
|
|
ExpiresByType application/x-javascript "access plus 1 week"
|
|
|
ExpiresByType application/xhtml-xml "access plus 600 seconds"
|
|
|
ExpiresByType image/gif "access plus 1 month"
|
|
|
ExpiresByType image/jpeg "access plus 1 month"
|
|
|
ExpiresByType image/png "access plus 1 month"
|
|
|
ExpiresByType image/svg+xml "access plus 1 month"
|
|
|
ExpiresByType image/webp "access plus 1 month"
|
|
|
ExpiresByType image/x-icon "access plus 1 month"
|
|
|
ExpiresByType image/gif "access plus 1 year"
|
|
|
ExpiresByType image/jpeg "access plus 1 year"
|
|
|
ExpiresByType image/webp "access plus 1 year"
|
|
|
ExpiresByType image/png "access plus 1 year"
|
|
|
ExpiresByType image/svg+xml "access plus 1 year"
|
|
|
ExpiresByType image/x-icon "access plus 1 year"
|
|
|
ExpiresByType application/octet-stream "access plus 1 month"
|
|
|
</IfModule>
|
|
|
|
|
|
<ifmodule mod_headers.c>
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
<filesmatch "\\.(ico|jpe?g|png|gif|swf|webp)$">
|
|
|
Header set Cache-Control "max-age=2592000, public"
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(css)$">
|
|
|
Header set Cache-Control "max-age=604800, public"
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(js)$">
|
|
|
Header set Cache-Control "max-age=604800, private"
|
|
|
Header set Cache-Control "max-age=31536000, private"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(x?html?|php)$">
|
|
|
Header set Cache-Control "max-age=600, private, must-revalidate"
|
|
|
</filesmatch>
|
|
|
<filesMatch "\.(eot|svg|ttf|woff|woff2)$">
|
|
|
Header set Cache-Control "max-age=604800, public"
|
|
|
<filesMatch "\.(eot|svg|ttf)$">
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
|
</filesMatch>
|
|
|
</ifmodule>
|
|
|
<filesMatch "\.(woff|woff2)$">
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
|
</filesMatch>
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
Header append Vary Accept-Encoding
|
|
|
</IfModule>
|
... | ... | |