Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread itpp2012
Lucas Rolff Wrote: --- > > When using purge as availalbe in nginx-plus > (http://nginx.org/r/proxy_cache_purge), it takes care of removing all > cached variants, much like it does for wildcard purge requests. > Ahh cool! Nice one - maybe we'll be

Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread Lucas Rolff
Hi Maxim, Thank you a lot for the reply! The best possible solution I can think of is to ask the client to fix the Vary header it returns I completely agree, but sometimes it's hard to ask customers to do this, but I do try to do it as often as possible. When using purge as availalbe in

Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread Maxim Dounin
Hello! On Mon, Oct 24, 2016 at 06:38:25AM +0200, Lucas Rolff wrote: > Hi guys, > > I'm building a small nginx reverse proxy to take care of a bunch of static > files for my clients - and it works great. > > One thing I'm facing though is that some client sites sent "Vary: > Accept-Encoding, Use

Rewrite Vary header before stored in proxy_cache

2016-10-23 Thread Lucas Rolff
Hi guys, I'm building a small nginx reverse proxy to take care of a bunch of static files for my clients - and it works great. One thing I'm facing though is that some client sites sent "Vary: Accept-Encoding, User-Agent" - which gives an awful cache hit rate - since proxy_cache takes this into a