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

Vianney Carel edited comment on HTTPCLIENT-982 at 8/24/10 11:22 AM:
--------------------------------------------------------------------

I only need from my end to generate a log containing the time, URL, user-agent, 
etc. of the request, plus the response code of the server and a flag telling if 
it was served from the local cache or not. That log will be used to monitor the 
I/O of the application using the HttpClient.

I don't mind much if the caching client adds specific headers for caching. 
Nevertheless, from a general perspective, I would expect it to not change 
anything in the response except the headers mentioned in the HTTP RFC. I 
believe the idea of caching a response including all its headers on one hand, 
and returning the cached response with some headers modified on the other hand 
is somehow disturbing. So the less the client would do that, the happier I 
would be.

But... the client does cache the responses headers, doesn't it  ? (I confess I 
didn't check that point...)

      was (Author: vcarel):
    I only need from my end to generate a log containing the time, URL, 
user-agent, etc. of the request, plus the response code of the server and a 
flag telling if it was served from the local cache or not. That log will be 
used to monitor the I/O of the application using the HttpClient.

I don't mind much if the caching client adds specific headers for caching. 
Nevertheless, from a general perspective, I would expect it to not change 
anything in the response except the headers mentioned in the HTTP RFC. I 
believe the idea of caching a response including all its headers on one hand, 
and return the cached response with some headers modified on the other hand is 
somehow disturbing. So the less the client would do that, the happier I would 
be.

But... the client does cache the responses headers, doesn't it  ? (I confess I 
didn't check that point...)
  
> 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]

Reply via email to