Connection
Base URL, credentials and a reachable server.
Return 304 for a matching validator on a GET request and send changed content normally. Check a missing header, a weak validator and a 304 response with no body using the project’s HTTP parser.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
const unchanged = request.method === "GET" &&
validatorMatches(request.headers.get("if-none-match"), etag);
return new Response(unchanged ? null : body, {
status: unchanged ? 304 : 200,
headers: { ETag: etag },
});