[
https://issues.apache.org/jira/browse/HTTPCLIENT-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17724697#comment-17724697
]
Arturo Bernal commented on HTTPCLIENT-2277:
-------------------------------------------
"RFC 9111, section 5.1
The 'Age' response header field indicates the sender's estimate of the time
since the response was generated or validated at the origin server. When
multiple Age headers are present, the first one should be used and the rest
discarded. If the Age header value is invalid (not a non-negative integer), the
cache should ignore it.
At the moment, the HTTP cache returns false and considers the response not
cacheable when multiple Age headers are present. This behavior needs to be
updated to align with RFC 9111, which requires the first Age header to be used
and the rest discarded rather than considering the response not cacheable. Also
HTTP cache uses the largest Age value when multiple Age headers are present and
replaces invalid Age values with a default maximum age
> HttpClient Cache conformance to RFC 9111
> ----------------------------------------
>
> Key: HTTPCLIENT-2277
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2277
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpCache
> Reporter: Oleg Kalnichevski
> Priority: Major
>
> Ensure HttpClient Cache conforms to RFC 9111.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]