Re: How to sort parameters in nginx cache key

2014-09-16 Thread aircw
Valentin: I forgot to mention that the number of parameters is very big (> 100) and keeps growing. So manual sort is not an option :(. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253315,253323#msg-253323 ___ nginx mailing list nginx@nginx

Re: How to sort parameters in nginx cache key

2014-09-16 Thread Valentin V. Bartenev
On Tuesday 16 September 2014 14:32:41 Wei Chen wrote: > Hi: > > We are experiencing low cache hit ratio in Nginx server. It turned out > that one reason is client may be sending the same requests with > parameters in different orders. > > e.g. > > foo?p1=a&p2=b&p3=c > foo?p2=b&p1=a&p3=c > > And

How to sort parameters in nginx cache key

2014-09-16 Thread Wei Chen
Hi: We are experiencing low cache hit ratio in Nginx server. It turned out that one reason is client may be sending the same requests with parameters in different orders. e.g. foo?p1=a&p2=b&p3=c foo?p2=b&p1=a&p3=c And our cache key is set as proxy_cache_key $uri$is_args$args; It is not feasibl