Forum: NGINX How does the Proxy Cache Key Lookup actually happen?

2974d09ac2541e892966b762aad84943?d=identicon&s=25 lovekmla (Guest)
on 2014-05-06 03:59
(Received via mailing list)
I am using part of the request_body as the Cache_key in setting up the
Proxy_cache_key and I was wondering how the actual lookup / matching of
Cache would occur?

From the documentation, it looks like it's a MD5 encryption of the Cache
that I set.

Does that mean the cache_key lookup would be done after constructing the
cache key for the Incoming request? Is it possible that it would try to
do a
lookup with the default URI first and failover to construct the cache

Context of asking this is I am seeing some inconsistency in the Cache
Serving time for huge size of request_body Params even though when it's
served from the cache.

Posted at Nginx Forum:,249851,249851#msg-249851
2974d09ac2541e892966b762aad84943?d=identicon&s=25 samgujrat1984 (Guest)
on 2014-05-15 18:05
(Received via mailing list)

I am also trying to cache a url have this query but still no luck any


I tired these three different proxy_cache_key  , I am not sure where I
doing wrong

proxy_cache_key $scheme$host$request_method$request_uri;
1-     #proxy_cache_key
  2-       #proxy_cache_key
     3-    #proxy_cache_key "$scheme://$host$uri$is_args";
        proxy_cache_key       $uri$args_is?TF=$arg_TF &US=$arg_US

Posted at Nginx Forum:,249851,250125#msg-250125
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.