Control Web Panel
WebPanel => Information => Topic started by: Kalya on August 13, 2020, 09:25:54 AM
-
It required several hours to determine why my sites were not compressing but here is what you MUST add to the bottom of the httpd.conf (apache congifuration file in cwp)
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.[0678] no-gzip
BrowserMatch bMSIEs7 !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip
Header append Vary User-Agent
DeflateCompressionLevel 9
ตารางคะแนนพรีเมียร์ลีก 2020 (https://siamsport.tv/league/england/premier-league/2019-2020)
-
It required several hours to determine why my sites were not compressing but here is what you MUST add to the bottom of the httpd.conf (apache congifuration file in cwp)
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.[0678] no-gzip
BrowserMatch bMSIEs7 !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip
Header append Vary User-Agent
DeflateCompressionLevel 9
ตารางคะแนนพรีเมียร์ลีก 2020 (https://siamsport.tv/league/england/premier-league/2019-2020)
Why do you think it must be added for all? Not at all people using it ;)
You can use .htaccess and add the compression or you can use the VirtualHost template and add it.