Welcome! Log In Create A New Profile


RE: trying to disable gzip

Reinis Rozitis
October 18, 2023 12:50PM
> I added gzip off to nginx.conf file and then check the configuration with nginx -t, and then reloaded with systemctl reload nginx.
> When I visit the site, I still have
> Accept-Encoding: gzip, deflate, br

First of all - how are you testing?
'Accept-Encoding' - is the header in http request sent by client/browser identifying what the browser supports to what the server actually responds with 'Content-Encoding'.

In any case if you see something like that also in 'Content-Encoding' response headers - while I don't see that in provided configure line (the module might be dynamically loaded?) nginx default gzip module doesn't support 'br' (brotli) compression so it's either (a third party) ngx_brotli module (you can search your config for 'brotli') or something else ..

.. for example if you are testing on php site - php can have it's own output compression (for example via https://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression )

nginx mailing list
Subject Author Posted

RE: trying to disable gzip

Reinis Rozitis October 18, 2023 12:50PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready