hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Leigh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1469) Option to Include Last-Modified in 304 Not Modified Response
Date Mon, 24 Feb 2014 15:01:33 GMT

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

James Leigh updated HTTPCLIENT-1469:

    Attachment: HTTPCLIENT-1469.patch

This patch also deprecates constructors (and replaces their calls).


> Option to Include Last-Modified in 304 Not Modified Response
> ------------------------------------------------------------
>                 Key: HTTPCLIENT-1469
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1469
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpCache
>    Affects Versions: 4.3.2
>            Reporter: James Leigh
>            Priority: Minor
>              Labels: patch
>             Fix For: 4.4 Alpha1
>         Attachments: HTTPCLIENT-1469.patch
> The draft of the revised HTTP/1.1 (should be RFC'd shortly) says other response header
can be included in 304 responses if they exists for the purpose of guiding cache updates.
> http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-4.1
>    The server generating a 304 response MUST generate any of the
>    following header fields that would have been sent in a 200 (OK)
>    response to the same request: Cache-Control, Content-Location, Date,
>    ETag, Expires, and Vary.
>    Since the goal of a 304 response is to minimize information transfer
>    when the recipient already has one or more cached representations, a
>    sender SHOULD NOT generate representation metadata other than the
>    above listed fields unless said metadata exists for the purpose of
>    guiding cache updates (e.g., Last-Modified might be useful if the
>    response does not have an ETag field).
> This issue is to make it possible to include Last-Modified in a cached 304 response.

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