Vary: how caches keep two versions of one URL apart
How the Vary response header tells a cache which request fields a response depends on, and why Vary: * blocks reuse without revalidation.
Topic · 16 stories
16 stories tagged http on AI Tamer, newest first.
How the Vary response header tells a cache which request fields a response depends on, and why Vary: * blocks reuse without revalidation.
How the If-Match header and strong entity tags implement optimistic locking, so a slower editor can't silently overwrite a faster one.
A network call can hang while connecting, while waiting for the next byte, or by dribbling data forever. Connect, read and total timeouts each cover one of those, and some clients set none by default.
stale-while-revalidate and stale-if-error permit different kinds of bounded staleness. Their windows start after freshness ends, and each trades current data for a specific benefit.
A POST followed by a redirect can become a GET or remain a POST. The choice between 303, 307, 308, and historic 301/302 behavior changes what a form or API client sends next.
A source crawler can ask whether a page has changed before downloading it again. HTTP conditional requests provide the signal.
A partial download is useful only when the remaining bytes belong to the same file. HTTP range requests and validators let you check before appending.
Use curl --fail-with-body when a script needs to detect an HTTP error and keep the response text that explains it.
HTTP 202 means a request was accepted while processing remains unfinished. An asynchronous AI job needs a place where people can learn its outcome.
A cached response can depend on request headers as well as the URL. `Vary` tells caches which headers to compare before reuse.
The part after # points into a retrieved resource. It is removed before an HTTP request, so changing it alone cannot select a different server response.
Structured Fields give some HTTP headers a shared way to carry numbers, strings, booleans, and collections. The field definition tells clients how to read them.
OpenTelemetry baggage can leave an AI service in outbound HTTP headers. Check what a model API receives and limit propagation at that boundary.
A 429 can tell an agent when to retry and which limit it reached. The response body also matters: some 429s will not clear with backoff.
RFC 9457 gives HTTP API errors a standard JSON shape. Learn which fields clients can rely on and how to define useful problem types.
A large HTTP upload can be rejected from its headers before its body is sent. Here is how Expect: 100-continue works and where its limits lie.