{"uid":"cap_LuYLlwYFU0_3yoYVOq9G7","slug":"delx-commerce-cache-control-directive-diff-737aa181","name":"Delx Commerce — Cache-Control Directive Diff","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/cache-control-directive-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MdG00HkLaNd2HZWnUPLPU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structured diff between two Cache-Control header directive strings, returning added, changed, and removed directives.","exampleAgentPrompt":"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'.","exampleUseCases":[{"title":"Deployment cache config audit","prompt":"I just deployed a new version of our site and I need to know what changed in the Cache-Control header — before the deploy it was 'public, max-age=300' and now it's 'private, max-age=60'. What directives were added, removed, or changed?"},{"title":"CDN configuration regression check","prompt":"Can you diff these two Cache-Control values for me? The old one is 'public, s-maxage=3600, stale-while-revalidate=60' and the new one is 'public, s-maxage=7200'. I want to see exactly what directives got added, removed, or modified."},{"title":"Cache policy compliance verification","prompt":"I need to verify our Cache-Control header was updated correctly — it should have dropped 'public' and added 'no-store'. The before value is 'public, max-age=300' and the after is 'no-store, max-age=300'. Can you confirm what actually changed?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.471Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cache-control-directive-diff-737aa181"}