/[Apache-SVN]
ViewVC logotype

Revision 1058247


Jump to revision: Previous Next
Author: jonm
Date: Wed Jan 12 17:35:29 2011 UTC (13 years, 10 months ago)
Changed paths: 3
Log Message:
Implementation fix and acceptance tests for protocol recommendation:

"Many HTTP/1.0 cache implementations will treat an Expires value that
is less than or equal to the response Date value as being equivalent
to the Cache-Control response directive "no-cache". If an HTTP/1.1
cache receives such a response, and the response does not include a
Cache-Control header field, it SHOULD consider the response to be non-
cacheable in order to retain compatibility with HTTP/1.0 servers."

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3

Also had to update a few other test cases that incidentally ran afoul
of this recommendation.


Changed paths

Path Details
Directoryhttpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java modified , text changed
Directoryhttpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolRecommendations.java modified , text changed
Directoryhttpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCachingPolicy.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26