Skip to content

Instantly share code, notes, and snippets.

@kakerukaeru
Last active December 22, 2015 03:03
Show Gist options
  • Save kakerukaeru/37f0ff6ba40af6c1260e to your computer and use it in GitHub Desktop.
Save kakerukaeru/37f0ff6ba40af6c1260e to your computer and use it in GitHub Desktop.
[root@kakeru-cache01 ~]# varnishlog -i ReqHeader,RespHeader,BereqHeader,BerespHeader
*   << BeReq    >> 360459    
-   BereqHeader    User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
-   BereqHeader    Host: 10.10.10.10
-   BereqHeader    Accept: */*
-   BereqHeader    X-Forwarded-For: 10.10.10.20
-   BereqHeader    Accept-Encoding: gzip ################### backendへのreqにはAccept-Encoding: gzipを使用
-   BereqHeader    X-Varnish: 360459
-   BerespHeader   Server: nginx
-   BerespHeader   Date: Tue, 22 Dec 2015 02:47:41 GMT
-   BerespHeader   Content-Type: text/css
-   BerespHeader   Last-Modified: Mon, 01 Aug 2011 02:24:27 GMT
-   BerespHeader   Transfer-Encoding: chunked
-   BerespHeader   Connection: keep-alive
-   BerespHeader   ETag: W/"4e360e5b-5fb"
-   BerespHeader   Expires: Mon, 21 Mar 2016 02:47:41 GMT
-   BerespHeader   Cache-Control: max-age=7776000
-   BerespHeader   Content-Encoding: gzip
-   BerespHeader   X-Backend-Used: kakeru-backend
-   BerespHeader   Vary: Accept-Encoding

*   << Request  >> 360458    
-   ReqHeader      User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
-   ReqHeader      Host: 10.10.10.10
-   ReqHeader      Accept: */*
-   ReqHeader      Accept-Encoding:deflate,gzip ################### varnishへのreqはAccept-Encoding:deflate,gzipだったのに!!
-   ReqHeader      X-Forwarded-For: 10.10.10.20
-   RespHeader     Server: nginx
-   RespHeader     Date: Tue, 22 Dec 2015 02:47:41 GMT
-   RespHeader     Content-Type: text/css
-   RespHeader     Last-Modified: Mon, 01 Aug 2011 02:24:27 GMT
-   RespHeader     ETag: W/"4e360e5b-5fb"
-   RespHeader     Expires: Mon, 21 Mar 2016 02:47:41 GMT
-   RespHeader     Cache-Control: max-age=7776000
-   RespHeader     Content-Encoding: gzip
-   RespHeader     X-Backend-Used: kakeru-backend
-   RespHeader     Vary: Accept-Encoding
-   RespHeader     X-Varnish: 360458
-   RespHeader     Age: 0
-   RespHeader     Via: 1.1 varnish-v4
-   RespHeader     X-Cache-Hits: 0
-   RespHeader     Accept-Ranges: bytes
-   RespHeader     Connection: keep-alive

*   << Session  >> 360457 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment