Is it possible for nginx to decompress FILES on-the-fly (not proxied)?

J.R. themadbeaker at
Sat Feb 29 15:30:02 UTC 2020

Well, figured it out... I swear I tried this yesterday, but maybe I
didn't or my configuration was incomplete...

If you use "gzip_static always;" in combination with the below
statements, it works correctly! It sends the compressed response as
expected, and will decompress on-the-fly when necessary.


> I am using the following directives (skipping non-relevant), and yes
> the extra modules were compiled in:
> gzip on;
> gzip_static on;
> gunzip on;

More information about the nginx mailing list