HTTP Caching & Backoff

Two time problems every API developer hits: how long will this response be cached? and how long should I wait before retrying? Paste headers for the first; tune the calculator for the second.

Cache header analyzer

Samples:

Retry backoff calculator

Why jitter? If 1,000 clients fail at once and all retry after exactly 1 s, the server gets hit by all 1,000 again simultaneously — the thundering herd. Randomizing the wait spreads them out; AWS’s analysis found full jitter and decorrelated jitter reduce total load the most. And always honor Retry-After when the server sends one.