unit
unit copied to clipboard
Gzip/Brotli compressions on NGINX Unit
Enabling gzip/brotli compression on pure NGINX is relatively simple. However, I want to enable gzip/brotli compression for NGINX Unit. I'm not seeing anything on the NGINX Unit configuration man page about how to do the same for NGINX Unit. Is the option not currently supported?
Unit itself, does not support compressing responses.
Depending on your app though, this is something you could do app side. For example, Ruby has a Deflater middleware that one can enable, or, you can put Nginx in front on Unit and have Nginx do the work for you.
Hi @nailarch as @travisbell already mentioned currently there is no GZip support in Unit. But this is something on our list of features.
Unit can serve static files but there is a trick to provide separate match for each of values from Accept-Encoding
If you're interested in testing some patches that do gzip, there's #914
It would be interesting to see testing on real world workloads and connections, and not just my localhost loops. :)