Poul-Henning Kamp wrote: > Check your varnishlog output, it shows all headers sent/received > and look for what cache-control the backend gives varnish...
The cache-control headers of the backend seem to be ok? (btw, the Varnish test-instance is running on my laptop, but the behaviour is exactly the same as it was on the production server) Luc First request: 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664137 1.0 8 SessionOpen c 127.0.0.1 48239 127.0.0.1:80 8 ReqStart c 127.0.0.1 48239 858012427 8 RxRequest c GET 8 RxURL c / 8 RxProtocol c HTTP/1.0 8 RxHeader c Host: www.removed 8 RxHeader c Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01 8 RxHeader c Accept-Encoding: gzip, compress, bzip2 8 RxHeader c Accept-Language: en 8 RxHeader c User-Agent: Lynx/2.8.7pre.6 libwww-FM/2.14 SSL-MM/1.4.1 8 VCL_call c recv 8 VCL_return c lookup 8 VCL_call c hash 8 VCL_return c hash 8 VCL_call c miss 8 VCL_return c fetch 9 BackendOpen b default 192.168.1.13 41812 <remote ip> 80 8 Backend c 9 default default 9 TxRequest b GET 9 TxURL b / 9 TxProtocol b HTTP/1.1 9 TxHeader b Host: www.removed 9 TxHeader b Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01 9 TxHeader b Accept-Encoding: gzip, compress, bzip2 9 TxHeader b Accept-Language: en 9 TxHeader b User-Agent: Lynx/2.8.7pre.6 libwww-FM/2.14 SSL-MM/1.4.1 9 TxHeader b X-Forwarded-For: 127.0.0.1 9 TxHeader b X-Varnish: 858012427 9 TxHeader b X-Forwarded-For: 127.0.0.1 9 RxProtocol b HTTP/1.1 9 RxStatus b 200 9 RxResponse b OK 9 RxHeader b Date: Mon, 08 Feb 2010 21:22:19 GMT 9 RxHeader b Server: Apache/2.2.3 (CentOS) 9 RxHeader b X-Powered-By: PHP/5.2.12 9 RxHeader b Set-Cookie: SESSbc5f9ce1c97eee1824d1ab670ce3057b=aar9ormanugvueruqlpr327ka5; expires=Thu, 04-Mar-2010 00:55:39 GMT; path=/; domain=.removed 9 RxHeader b Last-Modified: Mon, 08 Feb 2010 21:19:29 GMT 9 RxHeader b ETag: "8f386ae81f34f492ba4abde82d8ef425" 9 RxHeader b Expires: Sun, 19 Nov 1978 05:00:00 GMT 9 RxHeader b Cache-Control: must-revalidate 9 RxHeader b Content-Encoding: gzip 9 RxHeader b Transfer-Encoding: chunked 9 RxHeader b Content-Type: text/html; charset=utf-8 8 ObjProtocol c HTTP/1.1 8 ObjStatus c 200 8 ObjResponse c OK 8 ObjHeader c Date: Mon, 08 Feb 2010 21:22:19 GMT 8 ObjHeader c Server: Apache/2.2.3 (CentOS) 8 ObjHeader c X-Powered-By: PHP/5.2.12 8 ObjHeader c Set-Cookie: SESSbc5f9ce1c97eee1824d1ab670ce3057b=aar9ormanugvueruqlpr327ka5; expires=Thu, 04-Mar-2010 00:55:39 GMT; path=/; domain=.removed 8 ObjHeader c Last-Modified: Mon, 08 Feb 2010 21:19:29 GMT 8 ObjHeader c ETag: "8f386ae81f34f492ba4abde82d8ef425" 8 ObjHeader c Expires: Sun, 19 Nov 1978 05:00:00 GMT 8 ObjHeader c Cache-Control: must-revalidate 8 ObjHeader c Content-Encoding: gzip 8 ObjHeader c Content-Type: text/html; charset=utf-8 9 BackendReuse b default 8 TTL c 858012427 RFC 0 1265664139 1265664139 280299600 0 0 8 VCL_call c fetch 8 TTL c 858012427 VCL 1209600 1265664139 8 VCL_return c deliver 8 Length c 10987 8 VCL_call c deliver 8 VCL_return c deliver 8 TxProtocol c HTTP/1.1 8 TxStatus c 200 8 TxResponse c OK 8 TxHeader c Server: Apache/2.2.3 (CentOS) 8 TxHeader c X-Powered-By: PHP/5.2.12 8 TxHeader c Set-Cookie: SESSbc5f9ce1c97eee1824d1ab670ce3057b=aar9ormanugvueruqlpr327ka5; expires=Thu, 04-Mar-2010 00:55:39 GMT; path=/; domain=.removed 8 TxHeader c Last-Modified: Mon, 08 Feb 2010 21:19:29 GMT 8 TxHeader c ETag: "8f386ae81f34f492ba4abde82d8ef425" 8 TxHeader c Content-Encoding: gzip 8 TxHeader c Content-Type: text/html; charset=utf-8 8 TxHeader c Content-Length: 10987 8 TxHeader c X-Cacheable: Yes: ttl=0 8 TxHeader c cache-control: max-age = 900 8 TxHeader c Date: Mon, 08 Feb 2010 21:22:19 GMT 8 TxHeader c X-Varnish: 858012427 8 TxHeader c Via: 1.1 varnish 8 TxHeader c Connection: close 8 TxHeader c age: 0 8 ReqEnd c 858012427 1265664139.376405954 1265664139.577864408 0.000237465 0.201274157 0.000184298 8 SessionClose c not HTTP/1.1 8 StatSess c 127.0.0.1 48239 0 1 1 0 0 1 556 10987 0 StatAddr - 127.0.0.1 0 0 1 1 0 0 1 556 10987 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664140 1.0 A second request: 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664528 1.0 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664531 1.0 8 SessionOpen c 127.0.0.1 36366 127.0.0.1:80 8 ReqStart c 127.0.0.1 36366 858012428 8 RxRequest c GET 8 RxURL c / 8 RxProtocol c HTTP/1.0 8 RxHeader c Host: removed 8 RxHeader c Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01 8 RxHeader c Accept-Encoding: gzip, compress, bzip2 8 RxHeader c Accept-Language: en 8 RxHeader c User-Agent: Lynx/2.8.7pre.6 libwww-FM/2.14 SSL-MM/1.4.1 8 VCL_call c recv 8 VCL_return c lookup 8 VCL_call c hash 8 VCL_return c hash 8 Hit c 858012427 8 VCL_call c hit 8 VCL_return c deliver 8 Length c 10987 8 VCL_call c deliver 8 VCL_return c deliver 8 TxProtocol c HTTP/1.1 8 TxStatus c 200 8 TxResponse c OK 8 TxHeader c Server: Apache/2.2.3 (CentOS) 8 TxHeader c X-Powered-By: PHP/5.2.12 8 TxHeader c Set-Cookie: SESSbc5f9ce1c97eee1824d1ab670ce3057b=aar9ormanugvueruqlpr327ka5; expires=Thu, 04-Mar-2010 00:55:39 GMT; path=/; domain=.removed 8 TxHeader c Last-Modified: Mon, 08 Feb 2010 21:19:29 GMT 8 TxHeader c ETag: "8f386ae81f34f492ba4abde82d8ef425" 8 TxHeader c Content-Encoding: gzip 8 TxHeader c Content-Type: text/html; charset=utf-8 8 TxHeader c Content-Length: 10987 8 TxHeader c X-Cacheable: Yes: ttl=0 8 TxHeader c cache-control: max-age = 900 8 TxHeader c Date: Mon, 08 Feb 2010 21:28:51 GMT 8 TxHeader c X-Varnish: 858012428 858012427 8 TxHeader c Via: 1.1 varnish 8 TxHeader c Connection: close 8 TxHeader c age: 0 8 ReqEnd c 858012428 1265664531.629857302 1265664531.629952192 0.000370026 0.000051498 0.000043392 8 SessionClose c not HTTP/1.1 8 StatSess c 127.0.0.1 36366 0 1 1 0 0 0 566 10987 0 StatAddr - 127.0.0.1 0 392 2 2 0 0 1 1122 21974 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664534 1.0 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664537 1.0 0 CLI - Rd ping 0 CLI - Wr 0 200 PONG 1265664540 1.0 _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc