Ahh could be... we're into the bits of squid I am only starting look at....
so I'll leave it for now :-]
However I think the reply gets packed into the store... so this should be
fairly close to the mark. (grep '>date *') returns very few hits...
Rob
----- Original Message -----
From: "Duane Wessels" <wessels@squid-cache.org>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <squid-dev@squid-cache.org>
Sent: Wednesday, November 01, 2000 10:29 AM
Subject: Re: Cannot cache FTP request (HTTP experts advise needed)
>
>
> On Wed, 1 Nov 2000, Robert Collins wrote:
>
> > is this about right?
> >
> > Index: HttpReply.c
> > ===================================================================
> > RCS file: /cvsroot/squid/squid/src/HttpReply.c,v
> > retrieving revision 1.2
> > diff -u -r1.2 HttpReply.c
> > --- HttpReply.c 2000/10/21 15:16:11 1.2
> > +++ HttpReply.c 2000/10/31 23:24:56
> > @@ -334,6 +334,8 @@
> > const char *str;
> > rep->content_length = httpHeaderGetInt(hdr, HDR_CONTENT_LENGTH);
> > rep->date = httpHeaderGetTime(hdr, HDR_DATE);
> > + if (rep->date==-1)
> > + rep->date=squid_curtime;
> > rep->last_modified = httpHeaderGetTime(hdr, HDR_LAST_MODIFIED);
> > str = httpHeaderGetStr(hdr, HDR_CONTENT_TYPE);
> > if (str)
>
> I think that would include the header for the client, but does not
> add a header to the on-disk copy. So for a cache hit the header
> would be missing again. Not 100% sure though...
>
> Duane W.
>
>
Received on Tue Oct 31 2000 - 16:31:21 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:53 MST