Re: Pragma: no-cache and Squid

From: Dancer <dancer@dont-contact.us>
Date: Fri, 01 May 1998 11:25:53 +1000

Vladimir Litovka wrote:
>
> Hi!
>
> On Fri, 1 May 1998, Dancer wrote:
>
> > Are you _sure_ that that document came from the cache, and not from the
> > web-server?
>
> Absolutely! Here is two log's fragments from Apache and from Squid:
>
> -------------------- Apache's access.log -------------------
> gw-op.barnet.kharkov.ua - - [30/Apr/1998:21:14:25 +0300] "GET /computers/img/kntr2.gif HTTP/1.0" 304 -
> gw-op.barnet.kharkov.ua - - [30/Apr/1998:21:14:25 +0300] "GET /computers/img/knkr.gif HTTP/1.0" 304 -
>
> -------------------- Squid's access.log --------------------
> 893960064.562 29 194.135.253.10 TCP_HIT/200 5238 GET http://barnet.kharkov.ua/computers/lmenu.dhtml - NONE/- text/html
> 893960065.145 266 194.135.253.10 TCP_MISS/304 134 GET http://barnet.kharkov.ua/computers/img/kntr2.gif - FIREWALL_IP_DIRECT/barnet.kharkov.ua -
> 893960065.297 636 194.135.253.10 TCP_MISS/304 134 GET http://barnet.kharkov.ua/computers/img/knkr.gif - FIREWALL_IP_DIRECT/barnet.kharkov.ua -
>
> You can see, that lmenu.dhtml came from squid, because Apache's access.log has no any records about getting
> this one. This is headers from Squid's cache file:

Okay, looks like a hit to me. Hmm.

>
> HTTP/1.1 200 OK
> Date: Thu, 30 Apr 1998 09:02:55 GMT
> Server: Apache/1.2.6
> Pragma: no-cache
> Connection: close
> Content-Type: text/html
>
> > Also, as an aside, squid can't see META HTTP-EQUIV tags, unless the
> > web-server checks the document for them, and turns them into the
> > appropriate HTTP headers _before_ handing the document to squid.
>
> There is Pragma: directive in the fragment above. Does it means, that Apache sent
> this header to squid or no?

Yes, presumably.

> If no, what I need to do to make Apache send all headers,
> that I need?

.meta files, usually, or generate the objects with an nph-cgi where you
can control the headers.

D

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
------END GEEK CODE BLOCK------
Received on Thu Apr 30 1998 - 18:36:19 MDT

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