filter to modify upstream response before it is cached
roger at netskrt.io
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 (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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx