use mod_gzip
This commit is contained in:
parent
3d41e5743d
commit
e49d27a5ea
1 changed files with 16 additions and 0 deletions
16
.htaccess
16
.htaccess
|
@ -4,5 +4,21 @@
|
|||
ExpiresDefault "access plus 1 week"
|
||||
</IfModule>
|
||||
|
||||
# zip zip zip
|
||||
<ifModule mod_gzip.c>
|
||||
mod_gzip_on Yes
|
||||
mod_gzip_dechunk Yes
|
||||
|
||||
mod_gzip_minimum_file_size 300
|
||||
|
||||
mod_gzip_item_include file .(html?|txt|css|js|json|php|pl)$
|
||||
mod_gzip_item_include handler ^cgi-script$
|
||||
|
||||
mod_gzip_item_include mime ^application/x-javascript.*
|
||||
mod_gzip_item_exclude mime ^image/.*
|
||||
mod_gzip_item_include mime ^text/.*
|
||||
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
|
||||
</ifModule>
|
||||
|
||||
# early charset
|
||||
AddDefaultCharset UTF-8
|
||||
|
|
Reference in a new issue