[
https://issues.apache.org/jira/browse/HTTPCLIENT-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902415#action_12902415
]
Oleg Kalnichevski commented on HTTPCLIENT-982:
----------------------------------------------
A context attribute settable by CachingHttpClient sounds reasonable.
Alternatively we could use a special subclass of BasicHttpResponse for
responses generated from cached content, something along the line:
CachedHttpResponse extends BasicHttpResponse {
// additional attributes
Date requestDate;
Date responseDate
boolean validated;
<what not>
}
Oleg
> Could we get a way to know if the response has been served from the cache or
> not ?
> ----------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-982
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-982
> Project: HttpComponents HttpClient
> Issue Type: New Feature
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Vianney Carel
> Priority: Trivial
>
> Is there a way to know if the response has been served from the cache or not ?
> That's an information which might be useful for monitoring the activity of
> the cache.
> If there's no current way, maybe a flag could be added in the request context
> whenever the response comes from the cache ... ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]