From: Subba Rao (subb3 at domain attglobal.net)
Date: Sat 19 Feb 2000 - 13:39:46 GMT
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.
The squid access.log show the following:
950966673.946 501 127.0.0.1 TCP_MISS/301 530 GET http://pws.prserv.net/truemax root DIRECT/pws.pr
950966675.095 1098 127.0.0.1 TCP_MISS/200 4680 GET http://184.108.40.206/truemax/ root DIRECT/32.97.
The squid store.log show the following:
950966673.946 RELEASE FFFFFFFF 301 950966342 -1 -1 text/html -1/300 GET http://pws.pr
950966675.095 RELEASE FFFFFFFF 200 950966239 -1 -1 text/html -1/4505 GET http://32.97
The above pages are static. But it appears that Squid is downloading it again on revisits.
> Many news sites etc. have dynamically generated pages which set are set to
> expire immediately, so they are never cached. Make sure you're going to a
> static webpage, try a page served by apache on your own machine or a simple
> homepage on an ISP.
I have accepted to live with these page downloads for now.
> I'm not sure what DB you're taling about, do you mean the cache of stored
> web pages? I haven't ever seen squid set to do updates at set intervals.
> Whenever I have set up squid, it followed the standard HTTP caching rules
> ie. look at the headers (and possibly meta tags, not sure) for details of
> how long this to keep the page for before it must reload it.
I was talking from my observations in cache.log. It appears the stored pages
are done on an hourly basis (apporximately).
2000/02/19 02:15:54| NETDB state saved; 134 entries, 4 msec
2000/02/19 03:03:07| NETDB state saved; 134 entries, 344 msec
2000/02/19 04:06:19| NETDB state saved; 134 entries, 754 msec
2000/02/19 05:00:18| NETDB state saved; 134 entries, 12 msec
2000/02/19 06:00:29| NETDB state saved; 134 entries, 314 msec
2000/02/19 06:49:11| NETDB state saved; 134 entries, 404 msec
If the pages are not stored then, would squid go out again and get it?
That would be a waste of bandwidth.
subb3 at domain attglobal.net
=> Time is relative. Here is a new way to look at time. <=
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:28 GMT