Hello!
On Thu, Sep 1, 2016 at 7:53 PM, c0nw0nks wrote:
> So with my upstream if the cache status is MISS, EXPIRED or BYPASS what
> means the request hit the origin server i want the "Set-Cookie" sent.
>
> But if the response is being delivered by a page found in the cache i want
> to remove it. I do have more_headers and LUA for nginx but not sure what is
> the best way to do this or if anyone has done this before.
>
It's best to be done in header_filter_by_lua* using the Lua API
ngx.header and ngx.var.
Regards,
-agentzh