Welcome! Log In Create A New Profile

Advanced

Re: njs: output compression?

Sergey A. Osokin
April 28, 2021 10:24PM
Hi Gunter,

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
> scripts?

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.

--
Sergey Osokin
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

njs: output compression?

Gunter Grodotzki 281 April 28, 2021 09:36PM

Re: njs: output compression?

Sergey A. Osokin 77 April 28, 2021 10:24PM

Re: njs: output compression?

Gunter Grodotzki 119 April 29, 2021 02:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready