From: Subba Rao (subb3 at domain attglobal.net)
Date: Wed 16 Feb 2000 - 17:28:19 GMT
On 0, Kenn Humborg <kenn at domain linux.ie> wrote:
> On Tue, Feb 15, 2000 at 06:26:12PM -0500, Subba Rao wrote:
> > How does Squid keep track of the files being cached?
>
> Look in a cache dir (possibly /var/cache) and you'll see a bunch
> of sub directories that hold the actual files and big cache.log
> file that is basically an index into the directories.
>
> > How do we know if the cached files have
> > changed on the original server?
>
> If the original object had an Expires: header, then it honours
> that. If not, it sends a HTTP request with an If-Modified-Since:
> header specifying the last time it got the file. If the server
> returns 'Not modified' (code 342, I think), then squid serves
> it from the cache.
>
Thanks for replying.
It appears that the cacheing is not being done on my system. Each time I go to a
site there is lot of inbound traffic, suggesting that the whole page is being downloaded.
If a page is revisted, then it is reloaded from the browser's cache memory. I am looking
at the output of pppstats and the ethernet hub lights ( could use tcpdump ). For every page
revisted, there is a new download. I have deleted the local browser cache and revisted the
site, and squid goes out and brings the file instead of serving from it's cache.
The log files and the cache directories do seem to have some information that indicate
something is being stored.
What tags should I use to make sure that the frequently visited sites are being cached?
Subba Rao
subb3 at domain attglobal.net
http://pws.prserv.net/truemax/
=> Time is relative. Here is a new way to look at time. <=
http://www.smcinnovations.com
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:26 GMT