Gzip takes precedence over Brotli on some websites

Operating System & Version
CENTOS 7.8
cPanel & WHM Version
WHM v90.0.15

fenix83

Registered
Oct 21, 2020
3
1
3
Lima
cPanel Access Level
Root Administrator
Hi Lauren

All I did was enable brotli on EA4. The only difference of both websites is that the first website(the cpanel accounts) was created before enabling brotli, and the second website was created after enabling brotli.

The resources requested are css/js/html
 
Last edited:

fenix83

Registered
Oct 21, 2020
3
1
3
Lima
cPanel Access Level
Root Administrator
I just realized that the htaccess was like this

Code:
SetOutputFilter DEFLATE
Header unset ETag
FileETag None
<FilesMatch "\.(js|css|ico|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=31536000, public"
Header unset Last-Modified
</FilesMatch>
I have commented "SetOutputFilter DEFLATE" and the first web is already shown with brotli encoding
 
  • Like
Reactions: cPanelLauren