Apache 开启 gzip 压缩功能模块
Linux 2019年12月14日
1. Load mod_deflate, mod_headers, mod_filter:
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule filter_module modules/mod_filter.so
2. Add the following code in the website's .htaccess file in the site root.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript