# Delx Commerce — Cache-Control Header Parser

> Delx Commerce — Cache-Control Header Parser is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Parses an HTTP Cache-Control header string into structured directives and cacheability metadata

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cache-control-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-cache-control-header-parser-3674df91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iIvnpLobOZo6Tguj3gBFH

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 delx-commerce-cache-control-header-parser-3674df91 -d '<json body>'
```

Example prompt: Can you parse this Cache-Control header for me and tell me what the directives mean — is it cacheable, what's the max-age, and any stale-while-revalidate setting? The header is: 'public, max-age=300, stale-while-revalidate=30'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup way to parse Cache-Control headers into structured data with verifiable, privacy-preserving processing (no retention, SHA-256 evidence). Ideal for agents running automated web reliability checks, CDN audits, or HTTP response analysis pipelines where predictable $0.001 USDC pricing and auditability matter. Prefer over rolling your own parser when you need the evidence/audit trail or are operating in a crypto-native payment environment using x402/USDC on Base or Solana.

## Known failure modes

- Header string exceeds 8192 character limit — request rejected
- Malformed or unrecognized Cache-Control directives may not appear in output directives map
- Empty header string returns empty directives with cacheable_hint false
- Payment not received or insufficient USDC — 402 response returned before processing

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the parsed Cache-Control directives (e.g. public, max-age, stale-while-revalidate) as structured key-value pairs, a cacheable_hint boolean indicating whether the response is likely cacheable, the operation name, processing status ('pass'), and an evidence block confirming no input retention and zero external calls, plus a SHA-256 hash of the input for verifiability.

## 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/delx-commerce-cache-control-header-parser-3674df91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
