hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Caching responses to HEAD requests in httpclient-cache
Date Tue, 13 May 2014 08:01:25 GMT
On Mon, 2014-05-12 at 13:48 +0100, Rob Elliot wrote:
> Hi all,
> We're using HTTP Client 4.x with httpclient-cache. Our system needs to
> retrieve some metadata over HTTP that is returned in a Header Field, so it
> only needs to make a HEAD request. However, as it stands httpclient-cache
> does not cache the responses to HEAD requests.
> While the HTTP spec doesn't (by my reading) take a positive position on
> whether or not you can cache responses to HEAD requests, there doesn't seem
> any particular reason why they shouldn't be cached, with the obvious
> proviso that a GET request to a resource which currently only has a cached
> header must result in a request to origin, and that PUT, POST & DELETE
> requests should all invalidate the cache for that resource as usual.
> We're considering extending httpclient-cache to make this possible, but we
> don't want to lock ourselves out of upgrading forever. If we were to do so
> and offer to contribute it back to the project would you be interested?
> Regards,
> Rob


The best course of action would be to raise a JIRA with a change request
and attach propose changes as a patch in udiff format. Alternatively you
might want to fork httpclient in github [1] and open a pull request with
the project.



[1] https://github.com/apache/httpclient

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

View raw message