-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported Content-Coding: none #2619
Comments
Just to follow up on this, the only workaround I found thus far is the following settings.
|
Thanks for researching this. I am going to add this to the troubleshooting section of the learn site. |
The issue is caused by this line: https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Grav.php#L442 I think there was a reason why we ended up using none as the value; I think it prevents webserver from compressing the request. |
I looked for an alternative way of preventing gzip compression and found the following. function disable_gzip() {
@ini_set('zlib.output_compression', 'Off');
@ini_set('output_buffering', 'Off');
@ini_set('output_handler', '');
@apache_setenv('no-gzip', 1);
} |
@JFossey Can you test out the change? |
@mahagr I have not yet tested it out, but I will, it just might be a while before I get round to this. |
@mahagr This seems to work as intended, thank you. |
Hi,
I have recently revamped a pre-existing website developed in Yii using GravCMS.
When I have look to test the site using using tools like W3C validator and Chrome dev tools I get and error "Unsupported Content-Coding: none".
When I look into this issue I find Content-Encoding header can take only five values: gzip, compress, deflate, identity, br. The “none” is therefore an invalid value.
Ref:
The text was updated successfully, but these errors were encountered: