Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created December 17, 2013 18:34
Show Gist options
  • Select an option

  • Save ingydotnet/8010231 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/8010231 to your computer and use it in GitHub Desktop.
Two different API payloads with same ETag.
$ curl --request GET https://api.github.com/users/diakopter --dump-header head --output out --silent; sha1sum out; grep '"followers"' out; grep -E '^(Status|ETag)' head
6615b9213c14bab84b07bb114e6bcf9b52155fbb out
"followers": 12,
Status: 200 OK
ETag: "edb4efcefbfe4f1f2d9c86ae2ce739bd"
$ git hub follow diakopter
'ingydotnet' is now following 'diakopter'
$ curl --request GET https://api.github.com/users/diakopter --dump-header head --output out --silent; sha1sum out; grep '"followers"' out; grep -E '^(Status|ETag)' head
e31059b12b576ad2a1f15c2d7ee731a0eec53935 out
"followers": 13,
Status: 200 OK
ETag: "edb4efcefbfe4f1f2d9c86ae2ce739bd"
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment