Mantis - Resin
Viewing Issue Advanced Details
6014 minor always 08-15-16 19:53 11-10-16 15:00
nam  
nam  
normal  
closed 4.0.44  
fixed  
none    
none 4.0.50  
0006014: proxy-cache not showing updated files
(rep by mandrixx)

For a given max-age of T seconds, clients are never served the updated file until there is a period between requests that is greater than that timeout. In other words, requests were incorrectly refreshing the cache expiration timeout.

1. 200 - GET /test.xml
2. 304 - GET /test.xml with If-None-Match
3. update file
4. 304 - GET /test.xml with If-None-Match
...
N. 304 - GET /test.xml with If-None-Match
N+1. wait T-1 seconds
N+2. 304 - GET /test.xml with If-None-Match
N+3. wait T seconds
N+4. 200 - GET /test.xml with If-None-Match

At N+3, only by waiting greater than T seconds do you see the updated file.

Notes
(0006713)
nam   
08-15-16 20:01   
server/2hdx
(0006714)
nam   
08-15-16 20:19   
Fix is ready and will be included in 4.0.50 (after 4.0.49).