Commit 18dce526 by lmf

启用文本压缩

parent 8c292cc0
...@@ -5,3 +5,12 @@ RewriteCond %{REQUEST_URI} !^/update/ ...@@ -5,3 +5,12 @@ RewriteCond %{REQUEST_URI} !^/update/
RewriteCond %{REQUEST_URI} !^/dev/ RewriteCond %{REQUEST_URI} !^/dev/
RewriteRule .* /pub/$0 [L] RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php DirectoryIndex index.php
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</IfModule>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment