Skip to content

Instantly share code, notes, and snippets.

@JohnBat26
Created July 18, 2012 08:54

Revisions

  1. JohnBat26 created this gist Jul 18, 2012.
    54 changes: 54 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    With use proxy_cache (291 ms):
    -----
    GET /portal-facade-ng/v1/adv/imageMap/DEFAULT/TOP/ru_RU,270,90,v,png,2,transp?expiredTime=1342602000000 HTTP/1.1
    Host: localhost
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: ru,ru-ru;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    Cookie: JSESSIONID=ftzwob2szp5n1p16phnz8gui9
    Cache-Control: max-age=0

    HTTP/1.1 200 OK
    Server: nginx
    Date: Wed, 18 Jul 2012 08:41:20 GMT
    Content-Type: image/png
    Transfer-Encoding: chunked
    Connection: keep-alive
    Keep-Alive: timeout=45
    Cache-Control: max-age=3600
    Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
    Expires: Wed, 18 Jul 2012 09:41:20 GMT
    Content-Type: image/png

    64c66
    .PNG
    -----

    With use memcached_pass (2ms)

    GET /portal-facade-ng/v1/adv/imageMap/DEFAULT/TOP/ru_RU,270,90,v,png,2,transp?expiredTime=1342602000000 HTTP/1.1
    Host: localhost
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: ru,ru-ru;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    Cookie: JSESSIONID=ftzwob2szp5n1p16phnz8gui9
    Cache-Control: max-age=0

    HTTP/1.1 200 OK
    Server: nginx
    Date: Wed, 18 Jul 2012 08:53:50 GMT
    Content-Type: image/png
    Content-Length: 412774
    Connection: keep-alive
    Keep-Alive: timeout=45
    Expires: Wed, 18 Jul 2012 09:53:50 GMT
    Cache-Control: max-age=3600
    Content-Type: image/png

    .PNG

    -------