[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721064#comment-17721064
 ] 

Julian Reschke edited comment on HTTPCLIENT-2273 at 5/10/23 4:28 PM:
---------------------------------------------------------------------

bq. One doubt that I came cross its about  the use of field-names as arguments 
in the no-cache directive, as described in the RFC.

I'm not a caching expert. If something is nor clear here, please send email to 
the IETF HTTP WG's mailing list 
(https://lists.w3.org/Archives/Public/ietf-http-wg/).

EDIT: I just checked and it is valid in the no-cache response directive; see 
https://www.rfc-editor.org/rfc/rfc9111.html#cache-response-directive.no-cache 
(and read the whole subsection)


was (Author: reschke):
bq. One doubt that I came cross its about  the use of field-names as arguments 
in the no-cache directive, as described in the RFC.

I'm not a caching expert. If something is nor clear here, please send email to 
the IETF HTTP WG's mailing list 
(https://lists.w3.org/Archives/Public/ietf-http-wg/). 

> Improve handling of "no-cache" directive with specified header fields
> ---------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2273
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2273
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: Arturo Bernal
>            Priority: Major
>
> Currently, the Apache HttpComponents client does not fully handle the 
> "no-cache" directive with specified header fields as outlined in RFC 7234. 
> This may lead to incorrect caching behavior when the "no-cache" directive is 
> used with specific header fields. 
> The goal of this ticket is to enhance the handling of the "no-cache" 
> directive to ensure that specified header fields are not sent in a response 
> to a subsequent request without successful revalidation with the origin 
> server. This allows an origin server to prevent the re-use of certain header 
> fields in a response, while still allowing caching of the rest of the 
> response. 
> To achieve this, the following changes should be made: 
>  # Update the caching module to identify and handle "no-cache" directives 
> with specified header fields. 
>  # Revalidate the response with the origin server when the specified header 
> fields are present in a cached response, to ensure that they are not reused 
> without successful revalidation. 
>  # Ensure that the rest of the response is still cacheable when the specified 
> header fields are present, as long as the response complies with other 
> caching requirements.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to