filter to modify upstream response before it is cached

Roger Fischer roger at
Sat Jan 11 00:57:32 UTC 2020


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 ( <>), 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.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list