Domain not take Content-Encoding: gzip from htaccess

Angel Castro

Well-Known Member
Jul 16, 2018
45
4
8
Aguascalientes, México
cPanel Access Level
Root Administrator
Hi.

I have an issue with the Content-Encoding because in my htaccess file I have this:

## COMPRESS
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml# Remove browser bugs (only needed for old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>


but the domain doesn't take that configuration.

If I add this htaccess code on other domain it works pretty well, the only difference is that the domain where isn't working has SSL and the other domain where it works doesn't. I'm not saying SSL could be the problem, but is something that i noticed.

My apache server has enabled mod_deflate module.

I hope someone knows about this and can help to fix it. Thanks in advance.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,220
2,420
363
cPanel Access Level
Root Administrator
Hey there! We need some more details on this issue. What do you mean when you say the "domain doesn't take that configuration" ? Do you get a certain error message or a problem with the site loading? Do you see any entries in the Apache logs? (/etc/apache2/logs/error_log)