Skip to content

Instantly share code, notes, and snippets.

@aaronbbrown
Created September 12, 2012 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbbrown/3707263 to your computer and use it in GitHub Desktop.
Save aaronbbrown/3707263 to your computer and use it in GitHub Desktop.
nginx gzip HTTP/1.0 vs HTTP/1.1

HTTP/1.0 request

$ curl  -sv0IH 'Accept-Encoding: gzip' -H 'Host: www.ideeli.com' http://www.ideeli.com/welcome?MuttAndJeff=1
* About to connect() to www.ideeli.com port 80 (#0)
*   Trying 208.39.105.3...
* connected
* Connected to www.ideeli.com (208.39.105.3) port 80 (#0)
> HEAD /welcome?MuttAndJeff=1 HTTP/1.0
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Accept: */*
> Accept-Encoding: gzip
> Host: www.ideeli.com
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Server: nginx/0.8.54
Server: nginx/0.8.54
< Date: Wed, 12 Sep 2012 15:08:28 GMT
Date: Wed, 12 Sep 2012 15:08:28 GMT
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Connection: close
Connection: close
< Status: 200 OK
Status: 200 OK
< ETag: "8ee887f0222ec9c385a1e2c82b2cc32b"
ETag: "8ee887f0222ec9c385a1e2c82b2cc32b"
< X-Runtime: 34
X-Runtime: 34
< Content-Length: 18658
Content-Length: 18658
< Set-Cookie: now=1347462508; path=/
Set-Cookie: now=1347462508; path=/
< Set-Cookie: ignore_browser_check=on; path=/
Set-Cookie: ignore_browser_check=on; path=/
< Set-Cookie: browser_compatibility=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: browser_compatibility=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Set-Cookie: dfa_external_visit=true; path=/
Set-Cookie: dfa_external_visit=true; path=/
< Set-Cookie: live_session_id=c7b6d946e89c44ec5d2b758597e31488; path=/; expires=Thu, 13 Sep 2012 15:08:28 GMT; HttpOnly
Set-Cookie: live_session_id=c7b6d946e89c44ec5d2b758597e31488; path=/; expires=Thu, 13 Sep 2012 15:08:28 GMT; HttpOnly
< Cache-Control: private, max-age=0, must-revalidate
Cache-Control: private, max-age=0, must-revalidate

HTTP/1.1 request

$ curl  -sv1IH 'Accept-Encoding: gzip' -H 'Host: www.ideeli.com' http://www.ideeli.com/welcome?MuttAndJeff=1
* About to connect() to www.ideeli.com port 80 (#0)
*   Trying 208.39.105.3...
* connected
* Connected to www.ideeli.com (208.39.105.3) port 80 (#0)
> HEAD /welcome?MuttAndJeff=1 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Accept: */*
> Accept-Encoding: gzip
> Host: www.ideeli.com
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Server: nginx/0.8.54
Server: nginx/0.8.54
< Date: Wed, 12 Sep 2012 15:09:41 GMT
Date: Wed, 12 Sep 2012 15:09:41 GMT
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Connection: keep-alive
Connection: keep-alive
< Status: 200 OK
Status: 200 OK
< ETag: "8ee887f0222ec9c385a1e2c82b2cc32b"
ETag: "8ee887f0222ec9c385a1e2c82b2cc32b"
< X-Runtime: 35
X-Runtime: 35
< Set-Cookie: now=1347462581; path=/
Set-Cookie: now=1347462581; path=/
< Set-Cookie: ignore_browser_check=on; path=/
Set-Cookie: ignore_browser_check=on; path=/
< Set-Cookie: browser_compatibility=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: browser_compatibility=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Set-Cookie: dfa_external_visit=true; path=/
Set-Cookie: dfa_external_visit=true; path=/
< Set-Cookie: live_session_id=d8d53c7043c93f9ae1b76f9b27d369a5; path=/; expires=Thu, 13 Sep 2012 15:09:41 GMT; HttpOnly
Set-Cookie: live_session_id=d8d53c7043c93f9ae1b76f9b27d369a5; path=/; expires=Thu, 13 Sep 2012 15:09:41 GMT; HttpOnly
< Cache-Control: private, max-age=0, must-revalidate
Cache-Control: private, max-age=0, must-revalidate
< Content-Encoding: gzip
Content-Encoding: gzip

< 
* Connection #0 to host www.ideeli.com left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment