Mantis - Resin
Viewing Issue Advanced Details
140 minor always 05-05-05 00:00 05-10-05 00:00
ferg  
 
high  
closed 3.0.13  
3.0.13 no change required  
none    
none 2.1.x  
0000140: x-anonymous caching issues with cookies
RSN-134
(rep by Kirk Rasmussen)

[05-05-04 20:42:21.707] [20:42:21.707] caching: /waterdance?null anonymous expires=Thu, 05 May 2005 03:44:21 GMT length=50650
 
I could repeat the curl command as many times as I wanted until the expiration date, and it works great. Nothing is logged again until the expiration time is reached.
 
However, once I issued this request which included a cookie:
 
~/tools/curl-7.10.5/bin/curl -i -H "Cookie: VisitorID=316031c2c4735de3d50e9164cdaa662c" "http://foo.com:14500/waterdance" [^]
 
All subsequent requests using the original cookieless curl command would not use the cache until the expiration date was reached. The logs showed entries for every cached sub-include from that point on. Only when 100% anonymous requests are used, there are no log entries after the initial one.
 

Notes
(0000168)
ferg   
05-05-05 00:00   
This is an application bug. When a cookie arrived, the application was setting Cache-Control: no-cache, causing Resin to not cache the entire page.