Skip to content

Instantly share code, notes, and snippets.

@ahawkins
Created June 7, 2013 06:54
Show Gist options
  • Select an option

  • Save ahawkins/5727486 to your computer and use it in GitHub Desktop.

Select an option

Save ahawkins/5727486 to your computer and use it in GitHub Desktop.
These responses should indicate the client should **NOT** make the request to the server for a month.
# Response 1
HTTP/1.1 200 OK
Expires: Sun, 07 Jul 2013 06:22:13 GMT
Content-Type: application/json; charset=utf-8
X-Ua-Compatible: IE=Edge
X-Request-Id: 917489f3971e43bb0ec932d1fcc188f2
X-Runtime: 1.535856
Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-05-14)
Date: Fri, 07 Jun 2013 06:22:15 GMT
Content-Length: 0
Connection: Keep-Alive
# Response 2
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=2592000, private
X-Ua-Compatible: IE=Edge
X-Request-Id: c723c52c1c7590d1c7562b33be8213d3
X-Runtime: 1.899010
Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-05-14)
Date: Fri, 07 Jun 2013 06:53:22 GMT
Content-Length: 0
Connection: Keep-Alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment