DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7808>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7808 HTTP GET causes Squid 2.4 never to serve cached objects Summary: HTTP GET causes Squid 2.4 never to serve cached objects Product: Commons Version: 2.0 Alpha 1 Platform: Other OS/Version: Other Status: UNCONFIRMED Severity: Normal Priority: Other Component: HttpClient AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] [This may not be a bug at all, but maybe my small addition to the Collective Wisdom can save somebody a couple of hours' work... ] The problem: Squid 2.4 never serves cached objects which are requested by HTTP Client. That is, TCP_MISS rather than TCP_HIT. The cause: The GET request contains a "Content-Length" header with value "0". My workaround: Create a sub-class to "HttpMethodBase"... < http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/java/ org/apache/commons/httpclient/HttpMethodBase.java > ... override "addContentLengthRequestHeader()" as to _not_ call setRequestHeader() with "Content-Length". Please also read < http://www.squid-cache.org/bugs/show_bug.cgi?id=337 > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>