hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Moore (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-982) Could we get a way to know if the response has been served from the cache or not ?
Date Wed, 25 Aug 2010 14:46:17 GMT

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

Jonathan Moore updated HTTPCLIENT-982:
--------------------------------------

    Attachment: cache-context.patch

I've attached a patch to set an attribute on an incoming HttpContext detailing how a request
got handled by CachingHttpClient.

I selected a key of "http.cache.response.context" (this is a public constant on CachingHttpClient),
although I'm not familiar with the usual conventions for this. The attribute values are members
of the CacheResponseContext enum.

This patch is contributed with the permission of my employer.


> 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
>         Attachments: cache-context.patch
>
>
> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message