Skip to content

Instantly share code, notes, and snippets.

@JacobASeverson
Last active August 29, 2015 14:21
Show Gist options
  • Save JacobASeverson/1ced628763f165d0e219 to your computer and use it in GitHub Desktop.
Save JacobASeverson/1ced628763f165d0e219 to your computer and use it in GitHub Desktop.
# 1) Using the resource created in our previous example, do a conditional GET
# using the correct current ETag
curl -i -H "If-None-Match:2" localhost:8080/events/55555c2d4c6f98f355b003e
# Since the resource (and ETag) hasn't changed since our last interaction with
# its state, it only needs to send back a 304 with no response body
HTTP/1.1 304 Not Modified
Server: Apache-Coyote/1.1
ETag: "2"
Last-Modified: ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment