DELXCOMMERCE Live contract

Web and API intelligence · web-api-intelligence

Cache Freshness Calculate

Cache Freshness Calculate: Cache Freshness Calculate calculates remaining freshness from response timing metadata from bounded caller-supplied values without an external provider. Call Cache Freshness Calculate before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Cache Freshness Calculate as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Evaluates only caller-supplied metadata; it performs no DNS lookup, HTTP request, web search, credential use, or persistent storage. Advisory output only; the buyer owns authorization, payment policy, and production decisions.

webhttpreliability

One-command purchase

Run it from an agent.

No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/cache-freshness-calculate -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"date_epoch":1720000000,"age_seconds":20,"max_age_seconds":300,"now_epoch":1720000100}'
InputPOST /api/v1/x402/cache-freshness-calculate
{
  "date_epoch": 1720000000,
  "age_seconds": 20,
  "max_age_seconds": 300,
  "now_epoch": 1720000100
}
Delivered resultapplication/json
{
  "schema": "delx/util-cache-freshness-calculate/v1",
  "operation": "web_reliability:cache_freshness_calculate",
  "status": "pass",
  "result": {
    "current_age_seconds": 100,
    "remaining_seconds": 200,
    "fresh": true
  },
  "evidence": {
    "input_sha256": "dc06e6971edff08aae19366d5c94d9ebd945645757a1dda826dc3e155bb227dc",
    "retained": false,
    "external_calls": 0
  }
}

Machine-readable evidence

Inspect before paying.