Skip to content

Commit a7e42ec

Browse files
committed
Update docs for caching headers
- Most 200/201 responses include an ETag header - For single-object resources (e.g., a user, an issue, etc.), most 200/201 responses include a Last-Modified header (i.e., the timestamp for the last time that resource changed). For list resources (e.g., a list of users, a list of issues, etc.), most responses will *not* include the Last-Modified header.
1 parent a338da1 commit a7e42ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/v3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ User-Agent: Awesome-Octocat-App
383383

384384
## Conditional requests
385385

386-
Most responses return `Last-Modified` and `ETag` headers. You can use the values
386+
Most responses return an `ETag` header. Many responses also return a `Last-Modified` header. You can use the values
387387
of these headers to make subsequent requests to those resources using the
388-
`If-Modified-Since` and `If-None-Match` headers, respectively. If the resource
388+
`If-None-Match` and `If-Modified-Since` headers, respectively. If the resource
389389
has not changed, the server will return a `304 Not Modified`. Also note: making
390390
a conditional request and receiving a 304 response does not count against your
391391
[Rate Limit](#rate-limiting), so we encourage you to use it whenever possible.

0 commit comments

Comments
 (0)