about the response content-length with ESI page in the log

姚伟斌 nbubingo at gmail.com
Thu Mar 29 15:55:38 CEST 2012


Hello,

I don't know if it's a bug. We use the ESI page in our site. I saw the
varnishncsa.log was like this:

127.0.0.1 - - [29/Mar/2012:21:44:23 +0800] "GET
http://item.taobao.com/item.htm?id=14590083648&initiative_id=staobaoz_20120329
HTTP/1.0" 200 272
"http://s.taobao.com/search?q=Streak+Pro+D43+&initiative_id=staobaoz_20120329&atype=b&filterFineness=2&bcoffset=1&sort=sale-desc"
"Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.3 (KHTML, like Gecko)
Chrome/19.0.1061.1 Safari/536.3"
127.0.0.1 - - [29/Mar/2012:21:44:23 +0800] "GET
http://item.taobao.com/item.htm?id=12717866317&_u=t63tnnube5f&initiative_id=cartz_20120329
HTTP/1.0" 200 313
"http://s.taobao.com/search?q=%B3%C1%CF%E3%CA%D6%B4%AE108&initiative_id=cartz_20120329&commend=all&ssid=s5-e&s=80"
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET
CLR 2.0.50727; 360SE)"


The main page includes an tiny subpage about 200bytes. The main page
is about 100k. In the ncsa log, It just displayed the subpage
content-length, not the main page length or the merged page length. It
confused me a little a the first glance.



More information about the varnish-misc mailing list