On 0, Fergal Daly <fergal at 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.
Subba Rao
subb3 at attglobal.nethttp://pws.prserv.net/truemax/
=> Time is relative. Here is a new way to look at time. <=
http://www.smcinnovations.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!