<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><div><font class="Apple-style-span" face="Helvetica">It looks like if the first requested page is for an uncompressed page varnish will only deliver the uncompressed page from cache even if a compressed page is requested.</font></div><div><font class="Apple-style-span" face="Helvetica"><br></font></div><div><font class="Apple-style-span" face="Helvetica">--After a fresh bounce of varnish---</font></div><div><font class="Apple-style-span" face="Helvetica"><br></font></div><font class="Apple-style-span" face="Helvetica">**** Requesting uncompressed page first</font></font></font><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000">Curl request:</font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">$ curl <a href="http://prodweb">http://prodweb</a>9/ --head</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">HTTP/1.1 200 OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Content-Length: 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Date: Wed, 03 Dec 2008 02:19:15 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">X-Varnish: 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Age: 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Via: 1.1 varnish</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Served-by: prodweb9/prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Connection: close</font></font></div></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" color="#000000">Varnishlog output:</font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 SessionOpen c 172.16.200.145 56473 :80</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ReqStart c 172.16.200.145 56473 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxRequest c HEAD</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxURL c /</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxProtocol c HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c Host: prodweb9</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c Accept: */*</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c recv</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c lookup</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c hash</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c hash</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c miss</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c fetch</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 BackendClose b default</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 BackendOpen b default 172.16.160.85 23565 172.16.160.174 80</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 Backend c 9 default default</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxRequest b GET</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxURL b /</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxProtocol b HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxHeader b User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxHeader b Host: prodweb9</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxHeader b Accept: */*</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxHeader b X-Varnish: 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 TxHeader b X-Forwarded-For: 172.16.200.145</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxProtocol b HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxStatus b 200</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxResponse b OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Served-by: prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Content-Length: 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Date: Wed, 03 Dec 2008 02:19:15 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Connection: Keep-Alive</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 RxHeader b Keep-Alive: timeout=5, max=100</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjProtocol c HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjStatus c 200</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjResponse c OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Served-by: prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Date: Wed, 03 Dec 2008 02:19:15 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ObjHeader c Keep-Alive: timeout=5, max=100</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 9 BackendReuse b default</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TTL c 353939895 RFC 300 1228270755 0 0 300 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c fetch</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 Length c 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxProtocol c HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxStatus c 200</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxResponse c OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Content-Length: 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Date: Wed, 03 Dec 2008 02:19:15 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c X-Varnish: 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Age: 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Via: 1.1 varnish</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Served-by: prodweb9/prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Connection: close</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ReqEnd c 353939895 1228270752.682591915 1228270755.543001890 0.000190020 2.860359192 0.000050783</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 0 StatAddr - 172.16.200.145 0 60 2 2 0 0 2 761 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 SessionClose c no request</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 StatSess c 172.16.200.145 56473 3 1 1 0 0 1 357 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" color="#000000">**** Requesting same url with compression </font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" color="#000000">Curl Command:</font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">$ curl <a href="http://prodweb">http://prodweb</a>9/ --head --compressed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">HTTP/1.1 200 OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Content-Length: 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Date: Wed, 03 Dec 2008 02:22:20 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">X-Varnish: 353939896 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Age: 185</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Via: 1.1 varnish</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Served-by: prodweb9/prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000">Connection: close</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><font class="Apple-style-span" color="#000000">Varnishlog output:</font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div><div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 SessionOpen c 172.16.200.145 56529 :80</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ReqStart c 172.16.200.145 56529 353939896</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxRequest c HEAD</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxURL c /</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxProtocol c HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c Host: prodweb9</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c Accept: */*</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 RxHeader c Accept-Encoding: deflate, gzip</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c recv</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c lookup</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c hash</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c hash</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 Hit c 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c hit</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 Length c 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_call c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 VCL_return c deliver</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxProtocol c HTTP/1.1</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxStatus c 200</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxResponse c OK</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Content-Type: text/html; charset=utf-8</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c X-Runtime: 2.06915</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c ETag: "c10816a9ec10679b3ac800a4b2e3e70b"</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Cache-Control: no-cache, public, max-age=300</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Server: LiteSpeed</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Content-Length: 60261</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Date: Wed, 03 Dec 2008 02:22:20 GMT</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c X-Varnish: 353939896 353939895</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Age: 185</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Via: 1.1 varnish</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Served-by: prodweb9/prodapp5</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 TxHeader c Connection: close</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 ReqEnd c 353939896 1228270940.695084095 1228270940.695233107 0.009155035 0.000080824 0.000068188</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 0 StatAddr - 172.16.200.145 0 245 3 3 0 0 2 1130 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 SessionClose c no request</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"> 8 StatSess c 172.16.200.145 56529 0 1 1 0 0 0 369 0</font></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div>---- Bounce Varnish again ----</div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div>Now request compressed page first:</div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"><div>$ curl <a href="http://prodweb">http://prodweb</a>9/ --head --compressed</div><div><br></div><div>HTTP/1.1 200 OK</div><div>Content-Type: text/html; charset=utf-8</div><div>X-Runtime: 1.96633</div><div>ETag: "d0c769c5047af7cef664e2f941011667"</div><div>Cache-Control: no-cache, public, max-age=300</div><div>Content-Encoding: gzip</div><div>Vary: Accept-Encoding</div><div>Server: LiteSpeed</div><div>Content-Length: 11576</div><div>Date: Wed, 03 Dec 2008 02:39:14 GMT</div><div>X-Varnish: 1723012051</div><div>Age: 0</div><div>Via: 1.1 varnish</div><div>Served-by: prodweb9/prodapp12</div><div>Connection: close</div><div><br></div><div><font class="Apple-style-span" face="Helvetica">Varnishlog output:</font></div><div><br></div><div><div> 8 SessionOpen c 172.16.200.145 56707 :80</div><div> 8 ReqStart c 172.16.200.145 56707 1723012051</div><div> 8 RxRequest c HEAD</div><div> 8 RxURL c /</div><div> 8 RxProtocol c HTTP/1.1</div><div> 8 RxHeader c User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</div><div> 8 RxHeader c Host: prodweb9</div><div> 8 RxHeader c Accept: */*</div><div> 8 RxHeader c Accept-Encoding: deflate, gzip</div><div> 8 VCL_call c recv</div><div> 8 VCL_return c lookup</div><div> 8 VCL_call c hash</div><div> 8 VCL_return c hash</div><div> 8 VCL_call c miss</div><div> 8 VCL_return c fetch</div><div> 9 BackendOpen b default 172.16.160.85 22005 172.16.160.174 80</div><div> 8 Backend c 9 default default</div><div> 9 TxRequest b GET</div><div> 9 TxURL b /</div><div> 9 TxProtocol b HTTP/1.1</div><div> 9 TxHeader b User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</div><div> 9 TxHeader b Host: prodweb9</div><div> 9 TxHeader b Accept: */*</div><div> 9 TxHeader b Accept-Encoding: gzip</div><div> 9 TxHeader b X-Varnish: 1723012051</div><div> 9 TxHeader b X-Forwarded-For: 172.16.200.145</div><div> 9 RxProtocol b HTTP/1.1</div><div> 9 RxStatus b 200</div><div> 9 RxResponse b OK</div><div> 9 RxHeader b Content-Type: text/html; charset=utf-8</div><div> 9 RxHeader b Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</div><div> 9 RxHeader b X-Runtime: 1.96633</div><div> 9 RxHeader b ETag: "d0c769c5047af7cef664e2f941011667"</div><div> 9 RxHeader b Served-by: prodapp12</div><div> 9 RxHeader b Cache-Control: no-cache, public, max-age=300</div><div> 9 RxHeader b Content-Encoding: gzip</div><div> 9 RxHeader b Vary: Accept-Encoding</div><div> 9 RxHeader b Transfer-Encoding: chunked</div><div> 9 RxHeader b Date: Wed, 03 Dec 2008 02:39:14 GMT</div><div> 9 RxHeader b Server: LiteSpeed</div><div> 9 RxHeader b Connection: Keep-Alive</div><div> 9 RxHeader b Keep-Alive: timeout=5, max=100</div><div> 8 ObjProtocol c HTTP/1.1</div><div> 8 ObjStatus c 200</div><div> 8 ObjResponse c OK</div><div> 8 ObjHeader c Content-Type: text/html; charset=utf-8</div><div> 8 ObjHeader c Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</div><div> 8 ObjHeader c X-Runtime: 1.96633</div><div> 8 ObjHeader c ETag: "d0c769c5047af7cef664e2f941011667"</div><div> 8 ObjHeader c Served-by: prodapp12</div><div> 8 ObjHeader c Cache-Control: no-cache, public, max-age=300</div><div> 8 ObjHeader c Content-Encoding: gzip</div><div> 8 ObjHeader c Vary: Accept-Encoding</div><div> 8 ObjHeader c Date: Wed, 03 Dec 2008 02:39:14 GMT</div><div> 8 ObjHeader c Server: LiteSpeed</div><div> 8 ObjHeader c Keep-Alive: timeout=5, max=100</div><div> 9 BackendReuse b default</div><div> 8 TTL c 1723012051 RFC 300 1228271954 0 0 300 0</div><div> 8 VCL_call c fetch</div><div> 8 VCL_return c deliver</div><div> 8 Length c 11576</div><div> 8 VCL_call c deliver</div><div> 8 VCL_return c deliver</div><div> 8 TxProtocol c HTTP/1.1</div><div> 8 TxStatus c 200</div><div> 8 TxResponse c OK</div><div> 8 TxHeader c Content-Type: text/html; charset=utf-8</div><div> 8 TxHeader c X-Runtime: 1.96633</div><div> 8 TxHeader c ETag: "d0c769c5047af7cef664e2f941011667"</div><div> 8 TxHeader c Cache-Control: no-cache, public, max-age=300</div><div> 8 TxHeader c Content-Encoding: gzip</div><div> 8 TxHeader c Vary: Accept-Encoding</div><div> 8 TxHeader c Server: LiteSpeed</div><div> 8 TxHeader c Content-Length: 11576</div><div> 8 TxHeader c Date: Wed, 03 Dec 2008 02:39:14 GMT</div><div> 8 TxHeader c X-Varnish: 1723012051</div><div> 8 TxHeader c Age: 0</div><div> 8 TxHeader c Via: 1.1 varnish</div><div> 8 TxHeader c Served-by: prodweb9/prodapp12</div><div> 8 TxHeader c Connection: close</div><div> 8 ReqEnd c 1723012051 1228271952.806010008 1228271954.783368111 0.000576019 1.977247953 0.000110149</div><div> 0 StatAddr - 172.16.200.145 0 2 1 1 0 0 1 406 0</div><div> 8 SessionClose c no request</div><div> 8 StatSess c 172.16.200.145 56707 2 1 1 0 0 1 406 0</div><div><br></div><div><br></div><div><br></div><div><br></div><div><font class="Apple-style-span" face="Helvetica">Now request uncompressed page...</font></div><div><br></div><div><div>$ curl <a href="http://prodweb">http://prodweb</a>9/ --head </div><div><br></div><div>HTTP/1.1 200 OK</div><div>Content-Type: text/html; charset=utf-8</div><div>X-Runtime: 0.54823</div><div>ETag: "309fb08bc00884c3b2d52449906da9b4"</div><div>Cache-Control: no-cache, public, max-age=300</div><div>Server: LiteSpeed</div><div>Content-Length: 60171</div><div>Date: Wed, 03 Dec 2008 02:39:36 GMT</div><div>X-Varnish: 1723012052</div><div>Age: 0</div><div>Via: 1.1 varnish</div><div>Served-by: prodweb9/prodapp5</div><div>Connection: close</div><div><br></div><div><font class="Apple-style-span" face="Helvetica">Varnish log output:</font></div><div><br></div><div><div> 8 SessionOpen c 172.16.200.145 56710 :80</div><div> 8 ReqStart c 172.16.200.145 56710 1723012052</div><div> 8 RxRequest c HEAD</div><div> 8 RxURL c /</div><div> 8 RxProtocol c HTTP/1.1</div><div> 8 RxHeader c User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</div><div> 8 RxHeader c Host: prodweb9</div><div> 8 RxHeader c Accept: */*</div><div> 8 VCL_call c recv</div><div> 8 VCL_return c lookup</div><div> 8 VCL_call c hash</div><div> 8 VCL_return c hash</div><div> 8 VCL_call c miss</div><div> 8 VCL_return c fetch</div><div> 9 BackendClose b default</div><div> 9 BackendOpen b default 172.16.160.85 22006 172.16.160.174 80</div><div> 8 Backend c 9 default default</div><div> 9 TxRequest b GET</div><div> 9 TxURL b /</div><div> 9 TxProtocol b HTTP/1.1</div><div> 9 TxHeader b User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3</div><div> 9 TxHeader b Host: prodweb9</div><div> 9 TxHeader b Accept: */*</div><div> 9 TxHeader b X-Varnish: 1723012052</div><div> 9 TxHeader b X-Forwarded-For: 172.16.200.145</div><div> 9 RxProtocol b HTTP/1.1</div><div> 9 RxStatus b 200</div><div> 9 RxResponse b OK</div><div> 9 RxHeader b Content-Type: text/html; charset=utf-8</div><div> 9 RxHeader b Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</div><div> 9 RxHeader b X-Runtime: 0.54823</div><div> 9 RxHeader b ETag: "309fb08bc00884c3b2d52449906da9b4"</div><div> 9 RxHeader b Served-by: prodapp5</div><div> 9 RxHeader b Cache-Control: no-cache, public, max-age=300</div><div> 9 RxHeader b Content-Length: 60171</div><div> 9 RxHeader b Date: Wed, 03 Dec 2008 02:39:36 GMT</div><div> 9 RxHeader b Server: LiteSpeed</div><div> 9 RxHeader b Connection: Keep-Alive</div><div> 9 RxHeader b Keep-Alive: timeout=5, max=100</div><div> 8 ObjProtocol c HTTP/1.1</div><div> 8 ObjStatus c 200</div><div> 8 ObjResponse c OK</div><div> 8 ObjHeader c Content-Type: text/html; charset=utf-8</div><div> 8 ObjHeader c Set-Cookie: _fod_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsGOg5yZXR1cm5fdG8iBi8GOgpAdXNlZHsGOwZG--5181ccb5b65c2f75cafa4a6a89f0932ab07d1391; path=/</div><div> 8 ObjHeader c X-Runtime: 0.54823</div><div> 8 ObjHeader c ETag: "309fb08bc00884c3b2d52449906da9b4"</div><div> 8 ObjHeader c Served-by: prodapp5</div><div> 8 ObjHeader c Cache-Control: no-cache, public, max-age=300</div><div> 8 ObjHeader c Date: Wed, 03 Dec 2008 02:39:36 GMT</div><div> 8 ObjHeader c Server: LiteSpeed</div><div> 8 ObjHeader c Keep-Alive: timeout=5, max=100</div><div> 9 BackendReuse b default</div><div> 8 TTL c 1723012052 RFC 300 1228271976 0 0 300 0</div><div> 8 VCL_call c fetch</div><div> 8 VCL_return c deliver</div><div> 8 Length c 60171</div><div> 8 VCL_call c deliver</div><div> 8 VCL_return c deliver</div><div> 8 TxProtocol c HTTP/1.1</div><div> 8 TxStatus c 200</div><div> 8 TxResponse c OK</div><div> 8 TxHeader c Content-Type: text/html; charset=utf-8</div><div> 8 TxHeader c X-Runtime: 0.54823</div><div> 8 TxHeader c ETag: "309fb08bc00884c3b2d52449906da9b4"</div><div> 8 TxHeader c Cache-Control: no-cache, public, max-age=300</div><div> 8 TxHeader c Server: LiteSpeed</div><div> 8 TxHeader c Content-Length: 60171</div><div> 8 TxHeader c Date: Wed, 03 Dec 2008 02:39:36 GMT</div><div> 8 TxHeader c X-Varnish: 1723012052</div><div> 8 TxHeader c Age: 0</div><div> 8 TxHeader c Via: 1.1 varnish</div><div> 8 TxHeader c Served-by: prodweb9/prodapp5</div><div> 8 TxHeader c Connection: close</div><div> 8 ReqEnd c 1723012052 1228271975.969137907 1228271976.524655104 0.000959873 0.555464983 0.000052214</div><div> 0 StatAddr - 172.16.200.145 0 24 2 2 0 0 2 764 0</div><div> 8 SessionClose c no request</div><div> 8 StatSess c 172.16.200.145 56710 1 1 1 0 0 1 358 0</div><div><br></div><div><br></div><div><font class="Apple-style-span" face="Helvetica">What could be causing this? The only way to fix appears to be to add the lines below:</font></div><div><br></div><div>sub vcl_hash {<br> if (req.http.Accept-Encoding ~ "gzip" || req.http.Accept-Encoding ~ "deflate") {<br> set req.hash += req.http.Accept-Encoding;<br> }</div><div><br></div><div><br></div></div><div><br></div></div></div></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" color="#000000"><br></font></font></div></div></div><div><br></div></div></body></html>