Welcome! Log In Create A New Profile

Advanced

filter to modify upstream response before it is cached

January 10, 2020 07:58PM
Hello,

is there a hook into the nginx processing to modify the response body (and headers) before they are cached when using with proxy_pass?

I am aware of the body filters (http://nginx.org/en/docs/dev/development_guide.html#http_body_filters <http://nginx.org/en/docs/dev/development_guide.html#http_body_filters>), running before the response is delivered to the client. But I would prefer to run the filter just once, when the upstream response is cached.

I am assuming, if nginx does not offer such a hook, OpenResty will not be of any help either.

Thanks…

Roger

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

filter to modify upstream response before it is cached

roger_bc January 10, 2020 07:58PM

Re: filter to modify upstream response before it is cached

Francis Daly January 13, 2020 05:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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