Caching
Most API endpoints return either an ETag
or a Last-Modified
header. You are encouraged to use conditional requests and cache resources and lists of resources on your client.
Making a conditional request and receiving a 304 response does not count against your Rate Limit, so we encourage you to use it whenever possible.
Last-Modified
The Last-Modified
header applies to response messages only. The value of this response header indicates the last time a specific resource or a group of resources was last changed. It may then be used to retrieve values from the server only if something changed on the server in the meantime.
Example
Subsequent request:
ETag
Similar mechanism can be used with the ETag
header.
Example
Subsequent request: