Re: Changing upstream response headers, before nginx caching decisions

2017-06-23 Thread Gryzli Bugbear
Hi Maxim, Thanks for your prompt answer ! That's exactly what I'm using currently, but was thinking if there is some more elegant/performance-effective way of doing this thing. Regards On 06/23/2017 03:09 PM, Maxim Dounin wrote: Hello! On Fri, Jun 23, 2017 at 02:31:37PM +0300, Gryzli Bug

Re: Changing upstream response headers, before nginx caching decisions

2017-06-23 Thread Maxim Dounin
Hello! On Fri, Jun 23, 2017 at 02:31:37PM +0300, Gryzli Bugbear wrote: > I have the following working scheme: > > Client --> Nginx [caching] --> Apache [backend] > > > Sometime the backend returns headers, which I want to modify before > nginx caching engine decides how to treat them. One suc

Changing upstream response headers, before nginx caching decisions

2017-06-23 Thread Gryzli Bugbear
Hello everybody, I have the following working scheme: Client --> Nginx [caching] --> Apache [backend] Sometime the backend returns headers, which I want to modify before nginx caching engine decides how to treat them. One such example is when backend returns Vary: header. I want to achi