On 0, Kenn Humborg <kenn at 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 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!