Skip to content

Commit 9145f1a

Browse files
committed
Swap order of ETag / Last-Modified examples
Since more responses include the ETag header than the Last-Modified header, let's show the ETag header example first.
1 parent a7e42ec commit 9145f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/v3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,20 +402,20 @@ X-RateLimit-Limit: 5000
402402
X-RateLimit-Remaining: 4996
403403
X-RateLimit-Reset: 1372700873
404404

405-
$ curl -i https://api.github.com/user -H "If-Modified-Since: Thu, 05 Jul 2012 15:31:30 GMT"
405+
$ curl -i https://api.github.com/user -H 'If-None-Match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
406406
HTTP/1.1 304 Not Modified
407407
Cache-Control: private, max-age=60
408+
ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
408409
Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
409410
Status: 304 Not Modified
410411
Vary: Accept, Authorization, Cookie
411412
X-RateLimit-Limit: 5000
412413
X-RateLimit-Remaining: 4996
413414
X-RateLimit-Reset: 1372700873
414415

415-
$ curl -i https://api.github.com/user -H 'If-None-Match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
416+
$ curl -i https://api.github.com/user -H "If-Modified-Since: Thu, 05 Jul 2012 15:31:30 GMT"
416417
HTTP/1.1 304 Not Modified
417418
Cache-Control: private, max-age=60
418-
ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
419419
Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
420420
Status: 304 Not Modified
421421
Vary: Accept, Authorization, Cookie

0 commit comments

Comments
 (0)