# Delx Commerce — Cache-Control Directive Diff

> Delx Commerce — Cache-Control Directive Diff 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).

Computes a structured diff between two Cache-Control header directive strings, returning added, changed, and removed directives.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cache-control-directive-diff?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-directive-diff-737aa181
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LuYLlwYFU0_3yoYVOq9G7

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-directive-diff-737aa181 -d '<json body>'
```

Example prompt: Compare these two Cache-Control headers and tell me exactly what changed — before was 'public, max-age=300' and after is 'private, max-age=60'.

## When to prefer this

Choose this endpoint when you need a structured, machine-readable diff of two Cache-Control header values with verifiable, auditable output (SHA-256 hash, no data retention). Ideal for agents automating deployment checks, CDN config audits, or compliance verification where deterministic, pay-per-call pricing and cryptographic evidence of processing are desirable.

## Known failure modes

- Malformed or non-standard Cache-Control directive strings may produce unexpected diff results
- Inputs exceeding 8192 characters will be rejected
- Missing 'before' or 'after' fields may cause a validation error or empty diff
- Payment failure via x402 protocol will prevent execution

## 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 with three keys — 'added', 'changed', and 'removed' — each containing the Cache-Control directives that were added, modified (with before/after values), or removed between the two input strings. Also includes operation status, whether inputs were retained (always false), and an SHA-256 hash of the input for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "string",
   "maxLength": 8192,
   "description": "After supplied to Cache Control Directive Diff; used only for this bounded calculation and processed in memory without retention."
  },
  "before": {
   "type": "string",
   "maxLength": 8192,
   "description": "Before supplied to Cache Control Directive Diff; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "added": {
    "private": true
   },
   "changed": {
    "max-age": {
     "after": "60",
     "before": "300"
    }
   },
   "removed": {
    "public": true
   }
  },
  "schema": "delx/util-cache-control-directive-diff/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "44c8102f91f5f32c1febe922935b8d0efa8cf2460a7ce344626bb417971a16f3",
   "external_calls": 0
  },
  "operation": "web_reliability:cache_control_directive_diff"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cache-control-directive-diff-737aa181/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)
