Re: Cannot cache FTP request (HTTP experts advise needed)

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 31 Oct 2000 16:29:24 -0700 (MST)

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:29:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:53 MST