HTTP headers

From: Vladimir Litovka <[email protected]>
Date: Thu, 30 Apr 1998 12:50:31 +0300 (EET DST)

Hi!

 I'm not sure, that this is squid's problem, but this is at least squid's
related ;) Can anybody help me? Thanks in advance :)

The problems are:

I have web server, based on Apache-1.2.6 with enabled CacheNegotiatedDocs
and Squid-1.1.20 with enabled reload_into_ims. As I understand, when squid
get request on reload document, it change "Pragma: no-cache" to
'If-modified-since' and send this request to destination web server. Ok,
I'm calling my local web via proxy - and see in access_log TCP_IMS_HIT, but
don't see any activity in the Apache's access log. So, Squid doesn't pass
request to web at all. This is strange, as for me.

Second: I'm using <meta http-equiv="Last-Modified" ...> and
<meta http-equiv="Expires" ...> directives in static HTML documents. Why
resulting document in Squid's cache doesn't contain Expires: header at all,
and Last-Modified set to last access time of document, but not to used
in <meta ...> directive? I'm afraid, that Apache ignores this directives in
documents and send default parameters in his reply. Why? I think, this
second problem is cause of first.

What I need to do for avoid this problems? Probably, some additional setup
for Apache? I can't find any related topics in the Apache documentation
and in the Apache FAQ.

Here is examples of original and resulting documents:

 ------- Start of resulting document in Squid's cache -----------
HTTP/1.1 200 OK
Date: Thu, 30 Apr 1998 08:23:16 GMT
Server: Apache/1.2.6
Last-Modified: Thu, 30 Apr 1998 08:22:01 GMT
ETag: "1b4f5-2476-354834a9"
Content-Length: 9334
Accept-Ranges: bytes
Connection: close
Content-Type: text/html

<html>
<head>
<META HTTP-EQUIV="Last-Modified" CONTENT="Thu, 30 Apr 1998 08:21:59 GMT">
<META HTTP-EQUIV="Expires" CONTENT="Fri, 01 May 1998 08:21:59 GMT">
</head>

...

---------- Start of original document -------------------
<html>
<head>
<META HTTP-EQUIV="Last-Modified" CONTENT="Thu, 30 Apr 1998 08:21:59 GMT">
<META HTTP-EQUIV="Expires" CONTENT="Fri, 01 May 1998 08:21:59 GMT">
</head>
Received on Thu Apr 30 1998 - 10:31:52 MDT

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