Anonymous | Login | Signup for a new account | 12-17-2024 11:54 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001992 | [Resin] | minor | sometimes | 09-05-07 11:06 | 10-24-07 10:49 | ||||
Reporter | david-peterson | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.0.25 | Product Version | 3.0.19 | ||||
Product Build | |||||||||
Summary | 0001992: files "stuck" in proxy cache | ||||||||
Description |
We have noticed that at random occurrences a file will get "stuck" in the cache and even though the file has been updated on disk, the server will continue to send the old version of the file back to the client. This behavior persists long after the <cache-mapping/> directives specify the file to be cached. It also seems somehow tied to the value of the Host: header. If that header is spoofed to something other than the name of the server the new file will be returned. |
||||||||
Steps To Reproduce | |||||||||
Additional Information |
Output using wget to show the HTTP headers. The first request gets the old file, the second the new. The only difference is the value of the Host: header. The same thing happens going to the public VIP (www.salesforce.com), but this example goes directly to the real server to show the load balancer isn't somehow causing the problem. The Last-Modified time of the second fetch is the actual modification time on-disk. $ wget --header="Host: www.salesforce.com" -S -O /dev/null http://public-web2-2-sjl:8085/common/assets/css/images/hdr_sfdc.gif [^] --10:44:24-- http://public-web2-2-sjl:8085/common/assets/css/images/hdr_sfdc.gif [^] => `/dev/null' Resolving public-web2-2-sjl... 10.227.32.11 Connecting to public-web2-2-sjl|10.227.32.11|:8085... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Server: ETag: "GvG8oten0jA" Last-Modified: Thu, 15 Feb 2007 19:52:25 GMT Cache-Control: max-age=14400 Expires: Wed, 05 Sep 2007 21:44:24 GMT Content-Type: image/gif Content-Length: 7069 Date: Wed, 05 Sep 2007 17:44:24 GMT Length: 7,069 (6.9K) [image/gif] 100%[===========================================================================================================================================================>] 7,069 --.--K/s 10:44:24 (4.94 MB/s) - `/dev/null' saved [7069/7069] $ wget --header="Host: NOT-www.salesforce.com" -S -O /dev/null http://public-web2-2-sjl:8085/common/assets/css/images/hdr_sfdc.gif [^] --10:44:29-- http://public-web2-2-sjl:8085/common/assets/css/images/hdr_sfdc.gif [^] => `/dev/null' Resolving public-web2-2-sjl... 10.227.32.11 Connecting to public-web2-2-sjl|10.227.32.11|:8085... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Server: ETag: "C/S2FjXqlzG" Last-Modified: Wed, 05 Sep 2007 01:29:17 GMT Accept-Ranges: bytes Cache-Control: max-age=14400 Expires: Wed, 05 Sep 2007 21:44:28 GMT Content-Type: image/gif Content-Length: 7903 Date: Wed, 05 Sep 2007 17:44:28 GMT Length: 7,903 (7.7K) [image/gif] 100%[===========================================================================================================================================================>] 7,903 --.--K/s 10:44:29 (5.41 MB/s) - `/dev/null' saved [7903/7903] ------------- Here is the relevant configuration directives: <server> <cache path="${web.home}/logs/cache"/> <web-app-default> <cache-mapping url-pattern='*.gif' expires='4h'/> |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |