January 10, 2020 07:58PM

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.



nginx mailing list
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: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready