hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francois-Xavier Bonnet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1515) Caching responses to HEAD requests
Date Sun, 16 Nov 2014 20:41:33 GMT

    [ 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

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message