W3C home > Mailing lists > Public > www-talk@w3.org > July to August 2004

Meaning of header fields Date and Age:

From: Greg Robson-Garth <gregrg@optusnet.com.au>
Date: Tue, 6 Jul 2004 20:50:50 +1000
Message-Id: <200407061050.i66AoIk23506@mail022.syd.optusnet.com.au>
To: <www-talk@w3.org>
What do these fields mean.

 

According to "the spec", RFC2616 the Date the date/time the message was
generated at the origin server.

 

1. Date

In a cache server, assuming the message is now resident in the cache and has
been requested by a HTTP client. Should the cache server send with message
with:

 

a)       the Date header as it received it from the origin server

b)       generate a new Date header being the date/time the message is sent
from the cache and calculate the age as the residence time

 

2. Age

Does the Age header represent the seconds relative to the date/time in the
date header. So if the Age is say Age: 60 and the time is 03:00:00, then its
birth time (for a want of a better word) is 02:59:00. If this is the case,
then surely the correct calculation of corrected_received_age in 13.2.3
should be

 

            now - date_value + age_value

 

Can anyone comment ?

 

--Greg

Author, FreeProxy
Received on Wednesday, 7 July 2004 14:50:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:28 GMT