Welcome! Log In Create A New Profile

Advanced

Re: problem with echo_before when proxying a server which sends gzipped content

Yichun Zhang (agentzh)
April 29, 2014 03:26PM
Hello!

On Thu, Apr 3, 2014 at 8:14 AM, Carsten Germer wrote:
> yes, it works with suppressing gzip between nginx and source-server with "proxy_set_header Accept-Encoding "deflate";"
> Thanks a bunch!
> I was aiming for a solution that preserves the gzip-compression between source and cache, but I'm caching long time, anyway.
>
>> add_before_body / add_after_body
> I did look at those before but I'd still have to find a way to get the $arg_callback to the URIs and output them with echo for the whole solution.

As the author of both the ngx_echo and ngx_xss modules, I'd recommend
ngx_xss module for your JSONP use case:

https://github.com/openresty/xss-nginx-module#readme

It should be a bit faster and also safer for this very case.

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

problem with echo_before when proxying a server which sends gzipped content

Carsten Germer April 02, 2014 08:50AM

Re: problem with echo_before when proxying a server which sends gzipped content

Maxim Dounin April 02, 2014 09:48AM

Re: problem with echo_before when proxying a server which sends gzipped content

Carsten Germer April 03, 2014 11:16AM

Re: problem with echo_before when proxying a server which sends gzipped content

Yichun Zhang (agentzh) April 29, 2014 03:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
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