<p class="MsoNoSpacing">Picking up an old thread for caching </p>
<p class="MsoNoSpacing"><a href="http://nginx.2469901.n2.nabble.com/Help-cache-or-not-by-cookie-td3124462.html">http://nginx.2469901.n2.nabble.com/Help-cache-or-not-by-cookie-td3124462.html</a>
</p>
<p class="MsoNoSpacing">Igor talks about caching by </p>
<p class="MsoNoSpacing">“No, currently the single way is: </p>
<p class="MsoNoSpacing">1) add the cookie in proxy_cache_key </p>
<p class="MsoNoSpacing">
proxy_cache_key
"<a href="http://cacheserver">http://cacheserver</a>$request_uri $cookie_name"; </p>
<p class="MsoNoSpacing">2) add "X-Accel-Expires: 0" in response with
the cookie.” </p>
<p class="MsoNoSpacing">But from my understanding of “<b>X-Accel-Expires” </b>it expires the cache in the cache repository
as given below </p>
<p class="MsoNoSpacing">“Sets when to
expire the file in the internal Nginx cache, if one is used.” </p>
<p class="MsoNoSpacing">Does this not mean that when I set cookie and pass “X-Accel-Expires:
0” it expires the cache for the non logged in user too, for that cache key? A new
cache entry will then have to be created, right? </p>
<p class="MsoNoSpacing">Should I go with “Cache-Control:<span style="font-size:10.5pt;font-family:"Lucida Sans Unicode","sans-serif";color:#555555;background:#f0f0f0"> </span>max-age=0” approach? </p>
<p class="MsoNoSpacing"> </p>