Yes, unfortunately I haven't had time to work on the caching module for several years, so I don't remember all the ins and outs of the implementation. However, Leandro, perhaps you could post the headers for the original request, the (cached) response, and then the subsequent request that gets a cache hit? If so, I can possibly help explain the behavior.
Jon On Tue, May 16, 2017 at 2:23 PM, Oleg Kalnichevski <ol...@apache.org> wrote: > On Tue, 2017-05-16 at 11:42 +0000, Leandro Nunes wrote: > > I just noticed the caching implementation is calling getEntry method > > twice when the entry is cached. I did some debugging and it looks > > like the first one is related with flushing invalid entries and the > > second call is related with actually serving the request. My question > > is wether this is the expected behaviour or is something that has > > been overlooked and can/should be addressed? > > > > Thanks, > > Leandro > > Leandro > > > HttpClient cache module desperately needs some attention. The best > course of action should be to consult the RFC, fix the behavior if > wrong, raise a PR at Github. > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > >