LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Squid config

[ILUG] Squid config

Subba Rao subb3 at attglobal.net
Wed Feb 16 17:28:19 GMT 2000


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.net
http://pws.prserv.net/truemax/

 => Time is relative. Here is a new way to look at time. <=
http://www.smcinnovations.com






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell