[
https://issues.apache.org/jira/browse/HTTPCLIENT-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Moore updated HTTPCLIENT-995:
--------------------------------------
Attachment: mismatched-conditionals.patch
The attached patch addresses this issue. In addition, we are now very explicit
about not using cached responses for conditionals we don't currently
understand/support, namely: If-Range, If-Match (for GETs), and
If-Unmodified-Since (for GETs).
This patch is contributed to the ASF with the permission of my employer.
> cache returns cached responses even if validators not consistent with all
> conditional headers
> ---------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-995
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-995
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: mismatched-conditionals.patch
>
>
> This is a MUST-level requirement in the RFC, where if both ETags and
> Last-Modified dates are used as validators in a conditional request, a cache
> cannot return a cached response unless it is consistent with all the
> conditional headers in the request. There is a unit test for this already,
> but it is incorrect (it uses 'If-Unmodified-Since' instead of
> 'If-Modified-Since' in the test case).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]