From: Fergal Daly (fergal at domain esatclear.ie)
Date: Sat 19 Feb 2000 - 14:30:00 GMT
At 09:01 19/02/00 -0500, Subba Rao wrote:
>On 0, Fergal Daly <fergal at domain esatclear.ie> wrote:
> >
> > Squid could be checking the last modified time of the page to make sure
> > there isn't a more recent one before serving the cached copy. If you look
> > in the squid logs, every entry gives a size, if the size is around 4-5
> > hundred bytes then it means that it just checked the change time but didn't
> > download the page.
> >
>
>One other thing I wanted to point out was about accessing cache. Please look
>at the following messages to the same site from 2 different machines.
>
>
> >From Linux:
>
>950968381.349 1293 127.0.0.1 TCP_MISS/200 4390 GET
>http://www.squid-cache.org/ root DIRECT/www.squid-cache.org text/html
>950968383.566 1939 127.0.0.1 TCP_MISS/200 2125 GET
>http://www.squid-cache.org/Icons/squidnow.gif root
>DIRECT/www.squid-cache.org image/gif
>950968383.706 2036 127.0.0.1 TCP_MISS/200 856 GET
>http://www.squid-cache.org/Icons/cache_now.gif root
>DIRECT/www.squid-cache.org image/gif
>950968384.345 2842 127.0.0.1 TCP_MISS/200 10902 GET
>http://www.squid-cache.org/Squidlogo2.gif root DIRECT/www.squid-cache.org
>image/gif
>
>
> >From NT:
>
>950968451.495 2 127.0.0.1 TCP_MEM_HIT/200 4398 GET
>http://www.squid-cache.org/ root NONE/- text/html
>
>
>What the TCP_MISS and TCP_MEM_HIT flags? For the NT machine, the page is
>instantly
>delivered, but for Linux Squid fetches the page. Both the machines are
>pointing to
>the same port on the Linux box.
I hope the TCP_MISS at the top was not because that was the first time
squid had been asked for that page! I'm not too sure of the meanings of the
various entries parts of the squid log. The first number is the time down
to the millisecond, the hit and miss are fairly clear, the number that
follows them is the http status code received when it made the request, the
number after that is how many bytes the request took. I don't know what the
others mean (apart from the obvious ones),
Fergal
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:28 GMT