Skip to content

Caching

Joakim Skoog edited this page Jan 24, 2024 · 1 revision

Apart from the standard cache headers such as max-age we also provide a few different ways to ease the load on our servers and your client. Each API response includes the ETag-header and the Last-Modified header. These headers can be used to ask our server if the data has changed or not. If the data has not changed you will receive an empty response body with a 304 Not Modified. If the data has changed you will receive a 200 with the updated data.

To use the ETag, include the following header in your request:

If-None-Match: "your_etag_here"

To use Last-Modified, include the following header in your request:

If-Modified-Since: "date_here"

Clone this wiki locally