hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Moore (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1183) HTTP/1.0 requests not serveable from cache
Date Thu, 12 Apr 2012 12:31:17 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jon Moore updated HTTPCLIENT-1183:

    Attachment: 1.0-requests-cacheable.patch

@Francois-Xavier: you made me curious enough to check. Attached is a patch with a unit test
that demonstrates that HTTP/1.0 requests can be served from the cache. So, I think this is
not actually a bug.

> HTTP/1.0 requests not serveable from cache
> ------------------------------------------
>                 Key: HTTPCLIENT-1183
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1183
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Cache
>            Reporter: Francois-Xavier Bonnet
>         Attachments: 1.0-requests-cacheable.patch
> Any HTTP/1.0 request is considered as not serveable from cache (only HTTP/1.1 requests
are serveable from cache). This is implemented in method org.apache.http.impl.client.cache.CacheableRequestPolicy.isServableFromCache(HttpRequest)
> What is the reason for this behaviour? According to the specifications, HTTP/1.0 request
are supposed to be cacheable even if the mechanism is more primitive than for HTTP/1.1 requests
(only based on Expires and Last-Modified headers).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


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

View raw message