abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: svn commit: r429514 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/CachedResponseBase.java
Date Tue, 08 Aug 2006 00:09:01 GMT
On 8/7/06, James M Snell <jasnell@gmail.com> wrote:
> The cached time is the instant that the resource entered the cached.
> From what I can tell from RFC2616, that is supposed to be the value of
> the Date header, if it exists, or the instant the response was received.
>  I believe I modified getServerDate() so that it will never return a
> null, so the else return 0 below should actually never execute.

Trust me, it does actually execute if there's literally no Date header
returned from the server ;-)

Without that patch, my embedded Jetty Servlet based tests were getting
NullPointer exceptions.

> However, I'll couch all of this is a blanket statement that I am not a
> caching expert.  For some of this, I'm learning as I go.

Ditto ;-)

-garrett

Mime
View raw message