Re: Cache based on custom header

2017-02-09 Thread Chad Hansen via nginx
Thanks! What part of openresty supplies that? For instance, it includes more-set-headers: if I include that, could i rewrite the incoming cache-related headers before cache layer processes them? On Wed, Feb 8, 2017 at 7:10 PM Peter Booth wrote: > Yes you can. For some subtle custom cache logic I

Re: Cache based on custom header

2017-02-08 Thread Peter Booth
Yes you can. For some subtle custom cache logic I needed to use openresty, which is an nginx bundle that adds a lot of customization points. Sent from my iPhone > On Feb 8, 2017, at 5:47 PM, Chad Hansen via nginx wrote: > > I use nginx as a reverse proxy, and upstream clients have a need for m

Cache based on custom header

2017-02-08 Thread Chad Hansen via nginx
I use nginx as a reverse proxy, and upstream clients have a need for my service to cache differently than downstream servers. Is there a way to change what header nginx uses to accept cache settings? Or a way to re-write cache headers before the cache settings take affect? For example, I could ha