Dear All,
In a nutshell:
How to set apache to favour Brotli over Gzip if both available!
Story + Troubleshooting:
Today I have enabled brotli via WHM => EasyApache => Apache modules => mod_brotli
Online test show status okay: Brotli Test | Brotli compression check
So far so good, but in chrome 72 dev tools I still see "content-encoding: gzip"
The Chrome default request header is: "accept-encoding: gzip, deflate, br"
I have changed the request header with a "ModHeader" named chrome extension.
If its set to "br" it serves well with brotli if its gzip it server with "gzip".
Here I tried to change the request header order to "accept-encoding: br, gzip"
And its still GZIP <= Here is the problem
I can clearly state that with the default apache Gzip (optimise website) and mod_brotli together prefers Gzip over Brotli which is a false logic, I want it on the other way!
Can anyone help me how to configure apache to favour Brotli over Gzip if both available.
In a nutshell:
How to set apache to favour Brotli over Gzip if both available!
Story + Troubleshooting:
Today I have enabled brotli via WHM => EasyApache => Apache modules => mod_brotli
Online test show status okay: Brotli Test | Brotli compression check
So far so good, but in chrome 72 dev tools I still see "content-encoding: gzip"
The Chrome default request header is: "accept-encoding: gzip, deflate, br"
I have changed the request header with a "ModHeader" named chrome extension.
If its set to "br" it serves well with brotli if its gzip it server with "gzip".
Here I tried to change the request header order to "accept-encoding: br, gzip"
And its still GZIP <= Here is the problem
I can clearly state that with the default apache Gzip (optimise website) and mod_brotli together prefers Gzip over Brotli which is a false logic, I want it on the other way!
Can anyone help me how to configure apache to favour Brotli over Gzip if both available.