<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">the key config is:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> # cache key is last part of URI</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> set $cachekey '$uri';</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> if ($uri ~ '([^/]+$)') { set $cachekey $1; }</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> proxy_cache_key "$cachekey";</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The URI includes query parameters:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">/dm/2$q7zVD5pG1k6QpMe6Nz7a8uZDx78~/de4c/5433/a0db/4f70-b9f7-413f3f47f38d/18f1e750-d25d-4ad1-a518-1adad04a9740_corrected.mpd?encoding=hex</font></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The key from the cache files are:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div class=""><font face="Menlo" class="">c/2c/ce5e89ff8bbc50ae58040855232242cc KEY: 18f1e750-d25d-4ad1-a518-1adad04a9740_corrected.mpd</font></div><div class=""><font face="Menlo" class="">d/59/a44f4cc7a098be369daac12f1aac759d KEY: 18f1e750-d25d-4ad1-a518-1adad04a9740_corrected.mpd</font></div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div></span></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 17, 2019, at 12:12 PM, Lucas Rolff <<a href="mailto:lucas@lucasrolff.com" class="">lucas@lucasrolff.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">What key do you see and what's your cache key configured as?<br class=""><br class="">On 17/01/2019, 20.39, "nginx on behalf of Roger Fischer" <<a href="mailto:nginx-bounces@nginx.org" class="">nginx-bounces@nginx.org</a> on behalf of <a href="mailto:roger@netskrt.io" class="">roger@netskrt.io</a>> wrote:<br class=""><br class=""> Hello,<br class=""><br class=""> I am using the nginx cache. I observed a MISS when I expected a HIT. When I look at the cache, I see the same page (file) twice in the cache, the original that I expected to HIT on, and the new one from the MISS (that should have been a HIT).<br class=""><br class=""> The key, as viewed in the cache file, is exactly the same.<br class=""><br class=""> What else, besides the key is considered in determining a hit or miss?<br class=""><br class=""> Thanks…<br class=""><br class=""> Roger<br class=""><br class=""> _______________________________________________<br class=""> nginx mailing list<br class=""> <a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class=""> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" class="">http://mailman.nginx.org/mailman/listinfo/nginx</a><br class=""><br class="">_______________________________________________<br class="">nginx mailing list<br class=""><a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class="">http://mailman.nginx.org/mailman/listinfo/nginx</div></div></blockquote></div><br class=""></div></body></html>