Re: How squid caches some things

From: Evgeny Kotsuba <evgen__k@dont-contact.us>
Date: Tue, 11 Oct 2005 01:54:52 +0400

On Mon, 10 Oct 2005 00:48:43 +0200 (CEST)
  Henrik Nordstrom <hno@squid-cache.org> wrote:

     On Sat, 8 Oct 2005, Evgeny Kotsuba wrote:

         1128764141.130 4280 127.0.0.1 TCP_CLIENT_REFRESH_MISS/200 743
GET http://kubok.yandex.ru/i/empty-top.jpg evg DIRECT/213.180.204.2
image/jpeg

     TCP_CLIENT_REFRESH_xxx indicates the client forced a cache
refresh in it's request header.

     log_mime_hdrs on

     should tell in more detail what is going on.

---------------8<--------------------------------
(1)
1128979352.320 470 127.0.0.1 TCP_REFRESH_HIT/200 341 GET
http://u1386.48.spylog.com/cnt?p=1 evg NONE/- text/html [Host:
u1386.48.spylog.com\r\nUser-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5;
en-US; rv:1.4.1) Gecko/20031121\r\nAccept:
video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language:
ru,en-us;q=0.7,en;q=0.3\r\nAccept-Encoding:
gzip,deflate\r\nAccept-Charset:
KOI8-R,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nReferer:
http://kubok.yandex.ru/regkubok_msk1/a18820af44d1c98777244f3e2da43ebb/?&1029.27724170637\r\nCookie:
VISID=DQKCCBIWMIICOCZWTB\r\nProxy-Authorization: Basic
ZXZnOjEyMw==\r\nPragma: no-cache\r\n] [HTTP/1.1 200 OK\r\nDate: Sun,
09 Oct 2005 12:12:13 GMT\r\nServer: Apache/1.3.6 (OS/2)
rus/PL28.16\r\nLast-Modified: Wed, 11 Apr 2001 11:22:00 GMT\r\nETag:
"10001a-2b-3ad43e58"\r\nAccept-Ranges: bytes\r\nContent-Length:
43\r\nKeep-Alive: timeout=15, max=100\r\nConnection:
Keep-Alive\r\nContent-Type: image/gif\r\n\r]
---------------8<--------------------------------
This url is redirected to dot.gif at my local apache
Stange thing I see: Pragma: no-cache and Cookie - why I need all those
stuff if I don't want ask aniithing about this counter ?
I specially comment in config
## acl QUERY urlpath_regex cgi-bin \?
## no_cache deny QUERY

---------------8<--------------------------------
(2)
1128979352.770 4920 127.0.0.1 TCP_MISS/200 9593 GET
http://kubok.yandex.ru/regkubok_msk1/a18820af44d1c98777244f3e2da43ebb/?&1029.27724170637
evg DIRECT/213.180.204.2 text/html [Host:
kubok.yandex.ru\r\nUser-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US;
rv:1.4.1) Gecko/20031121\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language:
ru,en-us;q=0.7,en;q=0.3\r\nAccept-Encoding:
gzip,deflate\r\nAccept-Charset:
KOI8-R,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nCookie: mail_tag=yandex.ru;
yandexuid=880632171062857853; yandex_login=\r\nProxy-Authorization:
Basic ZXZnOjEyMw==\r\nPragma: no-cache\r\n] [HTTP/1.1 200 OK\r\nDate:
Mon, 10 Oct 2005 21:22:28 GMT\r\nServer: Apache/1.3.33 (Unix)
mod_perl/1.29 PHP/4.4.0 rus/PL30.20\r\nPragma:
no-cache\r\nCache-control: no-cache\r\nSet-Cookie: \r\nConnection:
close\r\nContent-Type: text/html; charset=windows-1251\r\nExpires:
Thu, 01 Jan 1970 00:00:01 GMT\r\nLast-Modified: Mon, 10 Oct 2005
21:22:28 GMT\r\n\r]
---------------8<--------------------------------
Ok, this is main page that is reloaded every 20 sec.

---------------8<--------------------------------
(3)
1128979353.680 1700 127.0.0.1 TCP_REFRESH_HIT/200 5269 GET
http://kubok.yandex.ru/i/top6.gif evg DIRECT/213.180.204.2 image/gif
[Host: kubok.yandex.ru\r\nUser-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5;
en-US; rv:1.4.1) Gecko/20031121\r\nAccept:
video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language:
ru,en-us;q=0.7,en;q=0.3\r\nAccept-Encoding:
gzip,deflate\r\nAccept-Charset:
KOI8-R,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nReferer:
http://kubok.yandex.ru/regkubok_msk1/a18820af44d1c98777244f3e2da43ebb/?&1029.27724170637\r\nCookie:
mail_tag=yandex.ru; yandexuid=880632171062857853;
yandex_login=\r\nProxy-Authorization: Basic ZXZnOjEyMw==\r\nPragma:
no-cache\r\n] [HTTP/1.1 200 OK\r\nDate: Sun, 09 Oct 2005 09:16:56
GMT\r\nServer: Apache/1.3.33 (Unix) mod_perl/1.29 PHP/4.4.0
rus/PL30.20\r\nLast-Modified: Tue, 04 Oct 2005 16:59:41 GMT\r\nETag:
"14da60-134e-4342b4fd"\r\nAccept-Ranges: bytes\r\nContent-Length:
4942\r\nConnection: close\r\nContent-Type: image/gif\r\n\r]
---------------8<--------------------------------
Pragma: no-cache
Last-Modified: Tue, 04 Oct 2005 16:59:41 GMT

Why I should not place this image to cache ?!

It truth somewere near the refresh_pattern ?

SY,
Evgeny Kotsuba

SY,
Evgeny Kotsuba
Received on Mon Oct 10 2005 - 15:54:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:07 MST