Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/http-cache-explain

Explains from supplied response headers (and optionally the request's headers, a CORS request, and a redirect chain) whether a shared and a private HTTP cache may store the response (RFC 9111 section 3), its freshness lifetime and basis (s-maxage, max-age, Expires minus Date, or the 10% Last-Modified heuristic), Vary, invalid max-age or Expires, the CORS check and preflight outcome per the Fetch S

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/http-cache-explain

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/http-cache-explain", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cors":{"origin":"https://app.example"},"response":{"status":200,"headers":[{"name":"Cache-Control","value":"public, max-age=300"},{"name":"Access-Control-Allow-Origin","value":"https://app.example"},{"name":"Date","value":"Tue, 03 Nov 2026 10:00:00 GMT"}]}}),
});
console.log(await res.json());

Example input

{
  "cors": {
    "origin": "https://app.example"
  },
  "response": {
    "status": 200,
    "headers": [
      {
        "name": "Cache-Control",
        "value": "public, max-age=300"
      },
      {
        "name": "Access-Control-Allow-Origin",
        "value": "https://app.example"
      },
      {
        "name": "Date",
        "value": "Tue, 03 Nov 2026 10:00:00 GMT"
      }
    ]
  }
}