Something fishy

Anders Berg andersb at vgnett.no
Thu Aug 10 21:36:33 CEST 2006


> In message <2152.193.69.165.4.1155236902.squirrel at denise.vg.no>, "Anders
> Berg"
> writes:
>>
>>Cache-Control: max-age=900 on Squid, no header like this on Varnish.
>
> This shouldn't matter when the object has an Expires header.
>
> I guess if you computers time were off, we would be more safe with
> an max-age as well.

Mine is ntp updated.

> Create a ticket on it.
>
>>The next one is weird:
>>
>>ETag: W/"2b400e-28af1-44db7d1e" on Squid
>>ETag: "2b400e-288d5-44db7c55" on Varnish.
>
> This is whatever we got from the backend, Varnish does not touch
> ETag in anyway.

Okay, the output I got was from a #HEAD www.vg.no 80 command in FreeBSD 6
when I telnet I don't get it.

>>Every ETag from Squid has a W/ before the tag. This is new to me, and I
>>don't know the implications. It's obviously consistent across all
>> Squid's.
>
> W/ means weak.  I tried to wrap my head around why they wanted that
> in the RFC and failed.  It was probably a good idea to somebody.
>

Okay, probably not the reason then.

>>Accept-Ranges: bytes on Squid but none on Varnish, but that's not whats
>>causing this.
>
> Correct, we don't accept ranges.

Jepp. So we can write that one off.

To give some more data on this problem I just now did a HEAD from all
machines manually:

(andersb) fw:andersb $ telnet 10.0.2.2 80
Trying 10.0.2.2...
Connected to blade2.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 347
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.3 80
Trying 10.0.2.3...
Connected to blade3.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:23 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:23 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
Age: 333
X-Cache: HIT from www.vg.no
Via: 1.0 cache3.c.vgnett.no:80 (squid/2.6.RC1-20060621)
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.4 80
Trying 10.0.2.4...
Connected to blade4.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 359
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.12 80
Trying 10.0.2.12...
Connected to blade12.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 364
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $
(andersb) fw:andersb $ telnet 10.0.2.13 80
Trying 10.0.2.13...
Connected to blade13.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 370
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.17 80
Trying 10.0.2.17...
Connected to blade17.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 376
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $
(andersb) fw:andersb $ telnet 10.0.2.18 80
Trying 10.0.2.18...
Connected to blade18.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 380
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.19 80
Trying 10.0.2.19...
Connected to blade19.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 385
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.20 80
Trying 10.0.2.20...
Connected to blade20.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 390
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.21 80
Trying 10.0.2.21...
Connected to 10.0.2.21.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 10 Aug 2006 19:27:36 GMT
Server: Apache/1.3.27 (Unix)
Expires: Thu, 10 Aug 2006 19:42:36 GMT
Last-Modified: Thu, 10 Aug 2006 19:25:01 GMT
ETag: "2b400e-27703-44db880d"
Content-Type: text/html; charset=iso-8859-1
Content-Length: 161539
X-Varnish: 2005394511
Age: 0
Via: 1.1 varnish
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.28 80
Trying 10.0.2.28...
Connected to blade28.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 399
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.
(andersb) fw:andersb $ telnet 10.0.2.29 80
Trying 10.0.2.29...
Connected to blade29.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 10 Aug 2006 19:21:02 GMT
Server: Apache/1.3.27 (Unix)
Cache-Control: max-age=900
Expires: Thu, 10 Aug 2006 19:36:02 GMT
Last-Modified: Thu, 10 Aug 2006 19:20:01 GMT
ETag: "2b400e-276f9-44db86e1"
Accept-Ranges: bytes
Content-Length: 161529
Content-Type: text/html; charset=iso-8859-1
X-Cache: HIT from www.vg.no
Age: 405
X-Cache: HIT from www.vg.no
Connection: close

Connection closed by foreign host.

*************

All the Squid's behave the same... Oter's mom actually gets this problem
all time and she has Firefox :)

Anders Berg

> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by
> incompetence.
>
>




More information about the varnish-dev mailing list