njs: output compression?
Sergey A. Osokin
osa at freebsd.org.ru
Thu Apr 29 02:23:28 UTC 2021
On Thu, Apr 29, 2021 at 03:34:39AM +0200, Gunter Grodotzki wrote:
> Hi all,
> Is there a simple way that I am missing to enable output compression for njs
I don't think it's good practice to use the njs module for
a compression or any other heavy-math calculations.
> It seems to be working for r.internalRedirect(‘/foo.html’)
> But not for:
> r.headersOut['Content-Type'] = 'text/html; charset=UTF-8'
> r.return(200, someHtml)
Could you share more light about goals you're doing to archive
in this case.
More information about the nginx-devel