Re: tcp_miss with linux-client but not with win32

From: Dennis Sjogren <dempa@dont-contact.us>
Date: Tue, 13 Jul 1999 18:06:48 +0200 (CEST)

On Tue, 13 Jul 1999, Henrik Nordstrom wrote:

> Dennis Sjogren wrote:
> > I feel I should attach some log output, but to be honest, I don't know
> > where to begin with this. Any help appreciated!

> Begin with enabling log_mime_hdrs in squid.conf. Then grab two lines
> from your access.log
> a) The first from a request request when you beleive the object should
> have entered the cache
> b) The second from a request which you believe should have been a
> TCP_HIT but was recorded as a TCP_MISS.

As the disobedient person I am, I'm not going to do as you told me to.
:) I enabled log_mime_hdrs in squid.conf. Have a look at what I found:

This is from the Win98 browsing a single gif image. I've been at this
site before so the object is already in the cache. (I'm sorry about the
80+ character lines).

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -

931880928.214 38 192.168.1.0 TCP_IMS_HIT/304 188 GET
http://www.aftonbladet.se/vinj/sidhuvud/aftonbladet360x54.gif - NONE/- image/gif
[If-Modified-Since: Tue, 19 Jan 1999 09:35:38 GMT%3b length=3437%0d%0a
Proxy-Connection: Keep-Alive%0d%0a
User-Agent: Mozilla/4.61 %5ben%5d (Win98%3b I)%0d%0a
Host: www.aftonbladet.se%0d%0a
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*%0d%0a
Accept-Encoding: gzip%0d%0a
Accept-Language: en%0d%0a
Accept-Charset: iso-8859-1,*,utf-8%0d%0a
Cookie: NGUserID=c10da1c5-14845-931815049-1%0d%0a
] [HTTP/1.0 304 Not Modified%0d%0a
Date: Tue, 13 Jul 1999 15:02:18 GMT%0d%0a
Content-Type: image/gif%0d%0a
Last-Modified: Tue, 19 Jan 1999 09:35:38 GMT%0d%0a
%0d]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -

... And here we have the Linux-client browsing the same gif. Where did
that no-cache pragma come from!?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -

931880637.142 2705 192.168.1.0 TCP_MISS/200 3710 GET
http://www.aftonbladet.se/vinj/sidhuvud/aftonbladet360x54.gif -
DIRECT/www.aftonbladet.se image/gif [Proxy-Connection: Keep-Alive%0d%0a
User-Agent: Mozilla/4.6 %5ben%5d (X11%3bI%3b Linux 2.2.10 i686%3b Nav)%0d%0a
Pragma: no-cache%0d%0a
Host: www.aftonbladet.se%0d%0a
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*%0d%0a
Accept-Encoding: gzip%0d%0a
Accept-Language: en%0d%0a
Accept-Charset: iso-8859-1,*,utf-8%0d%0a
Cookie: NGUserID=c10da102-18569-919109184-4%0d%0a
] [HTTP/1.0 200 OK%0d%0a
Server: Netscape-Enterprise/2.01%0d%0a
Date: Tue, 13 Jul 1999 15:02:18 GMT%0d%0a
Accept-ranges: bytes%0d%0a
Last-modified: Tue, 19 Jan 1999 09:35:38 GMT%0d%0a
Content-length: 3437%0d%0a
Content-type: image/gif%0d%0a
Connection: keep-alive%0d%0a
%0d]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -

Now when I look closer, I see that there always seems to be a
DIRECT/blahblah statement when I browse from Linux? What's up with that?
(And what does it mean? :) )

As I said before, this isn't what you asked for, Henrik. If the above
output is of no use, I'm sorry. Next time I'll do as you say! I promise!
:)

/dempa

-- 
Dennis "Dempa" Sjogren - dempa@du.se - http://www.du.se/~dempa/
Unix & Network Services, Dalarna University College, Sweden
/usr/lib/sendmail root -s "`echo erzbir guvf nppbhag | tr a-z n-za-m`"
Received on Tue Jul 13 1999 - 09:52:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:22 MST