Every successful GET has an ETag. Send it back as If-None-Match and, when nothing changed, the answer is an empty 304. A 304 still counts against the limits, but it is quicker for you.
curl -i "https://gwl.gg/api/v1/team" \
-H "Authorization: Bearer $GWL_API_KEY" \
-H 'If-None-Match: "q1w2e3r4t5y6u7i8o9p0a1s2d3f"'
HTTP/1.1 304 Not Modified
ETag: "q1w2e3r4t5y6u7i8o9p0a1s2d3f"- private, no-cache
- Team answers: ask again each time, with the ETag.
- private, max-age=30
- Public answers: your client may reuse one for 30 seconds.
- public, max-age=300
- The OpenAPI document.
- no-store
- Errors, and /team/matches/{number}/server.
Answers to a key also carry Vary: Authorization. HEAD works wherever GET does.
This is version 1: every address starts /api/v1 and every answer carries X-API-Version: 1.
