Last active
August 29, 2015 14:21
-
-
Save JacobASeverson/1ced628763f165d0e219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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