Welcome! Log In Create A New Profile

Advanced

How to sort parameters in nginx cache key

Wei Chen
September 16, 2014 05:34PM
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 feasible to change all clients to resort their urls. Is
there any way in Nginx to address that?

Thanks,
-Wei

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to sort parameters in nginx cache key

Wei Chen September 16, 2014 05:34PM

Re: How to sort parameters in nginx cache key

Valentin V. Bartenev September 16, 2014 06:06PM

Re: How to sort parameters in nginx cache key

aircw September 16, 2014 09:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready