[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] Re: Squid doubles a request
From:       Henrik Nordstrom <hno () squid-cache ! org>
Date:       2003-04-30 11:30:27
[Download RAW message or body]

ons 2003-04-30 klockan 11.50 skrev Matthias Teege:
> In article <200304301034.57864@henrik.marasystems.com> you wrote:
> > There is no 2.4.10 version of Squid.
> Sorry, is a 2.4.STABLE7.
> 
> > What does Squid log in access.log? Preferably with log_mime_hdrs 
> > enabled.
> 
> 1051695784.754     10 192.168.153.10 TCP_HIT/200 2637 GET \
> http://www.jteege.de/jwiki.jpg - NONE/- image/jpeg [Host: www.j \
> teege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) \
> Gecko/20030426\r\nAccept: video/x-mng,image/png \
> ,image/jpeg,image/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: \
> en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflateb~eompress;q=0.9\ r\nAccept-Charset: \
> ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: \
> close\r\nReferer: http://www.  \
> jteege.de/cgi-bin/awki.cgi?edit=true&page=MatthiasTeege\r\n] [HTTP/1.0 200 \
> OK\r\nServer: fnord/1.7\r\nContent-Type: image /jpeg\r\nConnection: \
> Keep-Alive\r\nContent-Length: 2433\r\nLast-Modified: Mon, 28 Apr 2003 16:29:21 \
> GMT\r\n\r]

> 1051695788.914    297 192.168.153.10 TCP_MISS/200 745 POST \
> http://www.jteege.de/cgi-bin/awki.cgi? - DIRECT/81.2.131.61 te xt/html [Host: \
> www.jteege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) \
> Gecko/20030426\r\nAccept: t \
> ext/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: en-us,en;q=0.5\r\nAccept-Encoding: \
> gzip,deflateb~eompress;q=0.9\r\nAccept-Charset: IS \
> O-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: \
> close\r\nReferer: http://www.jteege.de/cgi-bin/awk \
> i.cgi?edit=true&page=MatthiasTeege\r\nContent-Type: \
> application/x-www-form-urlencoded\r\nContent-Length: 16\r\n] [HTTP/1.  0 200 \
> OK\r\nServer: fnord/1.7\r\nPragma: no-cache\r\nConnection: close\r\nContent-type: \
> text/html\r\n\r]

> 1051695788.980     10 192.168.153.10 TCP_HIT/200 2637 GET \
> http://www.jteege.de/jwiki.jpg - [snip]

> 1051695794.814    223 192.168.153.10 TCP_MISS/200 893 GET \
> http://www.jteege.de/cgi-bin/awki.cgi/FrontPage - DIRECT/81.2.1 31.61 text/html \
> [Host: www.jteege.de\r\nUser-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; \
> rv:1.3) Gecko/20030426\r\nA ccept: \
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,i \
> mage/gif;q=0.2,*/*;q=0.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: \
> gzip,deflateb~eompress;q=0.9\r\nAccept-Cha rset: \
> ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\nProxy-Connection: \
> close\r\nReferer: http://www.jteege.de/cgi \
> -bin/awki.cgi?save=true&page=MatthiasTeege\r\n] [HTTP/1.0 200 OK\r\nServer: \
> fnord/1.7\r\nPragma: no-cache\r\nConnection: close\r\nContent-type: \
> text/html\r\n\r]

> 1051695794.880      9 192.168.153.10 TCP_HIT/200 2637 GET \
> http://www.jteege.de/jwiki.jpg - [snip]

> This is the log for an edit, save cycle plus a klick to get the save
> statement. As you can see, the edit ocours twice.


I only see one POST in that log.. but I suspect there was one some time
before this (the Referer header of the first request seems to imply
this..). A study of the traffic with ngrep is probably recommended here,
starting by studying the traffic to/from the client, and if that does
not indicate what is going on (i.e. if everything looks alright there)
also studying the traffic to/from the web server.

I however see many redundant requests for jwiki.jpg, probably because
your Fnord/1.7 server is not sending a Date header which makes sending a
Last-Modified somewhat pointless (no point of reference), or maybe the
server is giving an incorrect Content-Length thereby preventing
jwiki.jpg from being cached.

Regards
Henrik


-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org

Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.

If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic