# Cache Control Parse

> Cache Control Parse is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Parses a Cache-Control HTTP header string into typed, normalized policy fields with a deterministic pass/advisory verdict

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cache-control-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cache-control-parse-af11a547
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tYejYFoCV7ricIuszbpor

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cache-control-parse-af11a547 -d '<json body>'
```

Example prompt: Parse this Cache-Control header for me and tell me what the caching policy is: 'max-age=3600, must-revalidate, no-store' — I need to know if I can safely cache this response.

## When to prefer this

Use this endpoint when an agent needs a deterministic, typed breakdown of Cache-Control header directives before deciding to cache, forward, redirect, or retry an HTTP response. It is stateless, memory-only, and returns a versioned structured verdict — ideal for automated agent pipelines that need reliable, auditable caching policy decisions without relying on ad-hoc string parsing.

## Known failure modes

- Header string exceeds 8192 character limit — request rejected
- Malformed or unrecognizable Cache-Control directives — may return advisory status with partial parsing
- Empty header string — may return a default or empty policy finding
- Payment not fulfilled via x402 — request not processed

## How this service works

Cache Control Parse: Cache Control Parse parses Cache-Control directives into typed policy fields from bounded caller-supplied values without an external provider. Call Cache Control Parse 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 Control Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only e…

## Output

Returns a versioned deterministic JSON object containing normalized cache directive fields (e.g. max-age, no-cache, no-store, must-revalidate), a computed finding summarizing the policy, and an explicit pass or advisory status indicating whether the response is safe to cache, redirect, or retry.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Cache Control Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "directives": {
    "public": true,
    "max-age": "300",
    "stale-while-revalidate": "30"
   },
   "cacheable_hint": true
  },
  "schema": "delx/util-cache-control-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "d3bfb8f081de2311ba0926e5ea07779b5a3e8836a8d9f3a465a8d8025c2ebd9f",
   "external_calls": 0
  },
  "operation": "web_reliability:cache_control_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cache-control-parse-af11a547/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
