[
https://issues.apache.org/jira/browse/HTTPCLIENT-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214060#comment-14214060
]
Francois-Xavier Bonnet commented on HTTPCLIENT-1515:
----------------------------------------------------
The point with the API was that we don't want to change the signature of
existing constructors or methods in order not to break the code of the projects
that are using it. But we still can add new methods or constructors.
In my opinion it is better to add 2 constructors to HttpCacheEntry and to
encapsulate all the logic related to the "Hc-Request-Method" header in this
class than to make BasicHttpCache partially responsible for that.
It will be easier later to refactor the code as we will probably remove the old
consrtuctors without request method.
> Caching responses to HEAD requests
> ----------------------------------
>
> Key: HTTPCLIENT-1515
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1515
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpCache
> Reporter: Tyrone Cutajar
> Fix For: 4.4 Final
>
> Attachments: HTTPClient-1515-add-request-method-headers.patch
>
>
> Our system retrieves metadata via HEAD requests using HTTP Client 4.x and
> would benefit immensely from having the headers in the response cached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]