From: Wesley Darlington (wesley at domain yelsew.com)
Date: Sat 06 Oct 2001 - 16:37:02 IST
On Sat, Oct 06, 2001 at 03:34:37PM +0100, Niall O Broin wrote:
> Then I quit Netscape and start it again and load the same page - again I
> must wait until they're downloaded from userfriendly - they're certainly NOT
> coming out of the squid cache. In the squid access log I get a load of
> TCP_CLIENT_REFRESH_MISS/200 lines for each of these GIFs and in the store
> log I get a load of RELEASE and SWAPOUT lines for each of them.
I've just installed debian's squid on my laptop and configured netscape
appropriately (0 disk cache, 0 memory cache, empty both, use squid).
Quat and restarted netscape...
The images seem to be cached appropriately. Sample tail from access.log
is below. I seem to be running 2.2.5.
> In the cached files there are Last-Modified: dates for the GIFs and they're
> all some time ago so why on earth does squid not just hand them to me
> instead of fetching them again ?
Apols for even mentioning this but is your computer's time correct?
> If any of you have squid running in such a way that it does properly cache
> that page's GIFs (and bear in mind that you won't know that unless you turn
> off your Netscape disk caching and of course restart Netscape between each
> attempt) would you please send me your squid.conf so that I can try to see
> what on earth is wrong with mine.
Sure. It's extremely vanilla: http://www.yelsew.com/squid.conf.gz
Also, as I mentioned, possibly not useful for your squid version. :-(
I notice that when I reduce the size of my squid's memory and disk cache
to 1MB each (ie. hopefully small enough to make squid reluctant to cache
the userfriendly page), I get lots of SWAPOUTs and RELEASEs in the store.log
and lots of TCP_MISS/200 entries in the cache log.
Is your cache full? Big enough?
Wesley.
Sample tail from access.log with big cache:
1002381682.518 12 10.0.1.17 TCP_MEM_HIT/200 6161 GET http://graphics.userfriendly.org/images/uf_greek.gif - NONE/- image/gif
1002381682.521 2 10.0.1.17 TCP_MEM_HIT/200 4678 GET http://graphics.userfriendly.org/images/uf_chinese_gb.gif - NONE/- image/gif
1002381682.531 9 10.0.1.17 TCP_MEM_HIT/200 5127 GET http://graphics.userfriendly.org/images/uf_linuxnews_pl.gif - NONE/- image/gif
1002381682.560 14 10.0.1.17 TCP_MEM_HIT/200 4761 GET http://graphics.userfriendly.org/images/anvandarvanligt.gif - NONE/- image/gif
1002381682.566 6 10.0.1.17 TCP_MEM_HIT/200 2896 GET http://graphics.userfriendly.org/images/brukervennlig.gif - NONE/- image/gif
1002381682.586 12 10.0.1.17 TCP_MEM_HIT/200 3209 GET http://graphics.userfriendly.org/images/tv2_dk.gif - NONE/- image/gif 1002381682.597 10 10.0.1.17 TCP_MEM_HIT/200 5707 GET
http://graphics.userfriendly.org/images/bf-logo.jpg - NONE/- image/jpeg 1002381682.601 3 10.0.1.17 TCP_MEM_HIT/200 6268 GET http://graphics.userfriendly.org/images/linmag_dutch.gif - NONE/- image/gif
1002381682.609 8 10.0.1.17 TCP_MEM_HIT/200 5636 GET http://graphics.userfriendly.org/images/slovenia.gif - NONE/- image/gif
1002381682.616 6 10.0.1.17 TCP_MEM_HIT/200 6323 GET http://graphics.userfriendly.org/images/brugervenlig.gif - NONE/- image/gif
1002381682.642 5 10.0.1.17 TCP_MEM_HIT/200 3487 GET http://graphics.userfriendly.org/images/uf_polsku.gif - NONE/- image/gif
Sample tail from access.log, tiny cache:
1002382360.936 598 10.0.1.17 TCP_MISS/200 5635 GET http://graphics.userfriendly.org/images/slovenia.gif - DIRECT/graphics.userfriendly.org image/gif
1002382360.948 703 10.0.1.17 TCP_MISS/200 6267 GET http://graphics.userfriendly.org/images/linmag_dutch.gif - DIRECT/graphics.userfriendly.org image/gif
1002382361.244 600 10.0.1.17 TCP_MISS/200 6160 GET http://graphics.userfriendly.org/images/uf_greek.gif - DIRECT/graphics.userfriendly.org image/gif
1002382361.357 1103 10.0.1.17 TCP_MISS/200 9090 GET http://m.tribalfusion.com/media/10606.gif - DIRECT/m.tribalfusion.com image/gif
1002382361.581 637 10.0.1.17 TCP_MISS/200 4760 GET http://graphics.userfriendly.org/images/anvandarvanligt.gif - DIRECT/graphics.userfriendly.org image/gif
1002382361.604 656 10.0.1.17 TCP_MISS/200 6322 GET http://graphics.userfriendly.org/images/brugervenlig.gif - DIRECT/graphics.userfriendly.org image/gif
1002382361.847 489 10.0.1.17 TCP_MISS/200 2895 GET http://graphics.userfriendly.org/images/brukervennlig.gif - DIRECT/graphics.userfriendly.org image/gif
1002382361.966 717 10.0.1.17 TCP_MISS/200 5706 GET http://graphics.userfriendly.org/images/bf-logo.jpg - DIRECT/graphics.userfriendly.org image/jpeg
1002382362.282 677 10.0.1.17 TCP_MISS/200 3208 GET http://graphics.userfriendly.org/images/tv2_dk.gif - DIRECT/graphics.userfriendly.org image/gif
1002382362.334 753 10.0.1.17 TCP_MISS/200 5126 GET http://graphics.userfriendly.org/images/uf_linuxnews_pl.gif - DIRECT/graphics.userfriendly.org image/gif
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:35 GMT