{"uid":"cap_iIvnpLobOZo6Tguj3gBFH","slug":"delx-commerce-cache-control-header-parser-3674df91","name":"Delx Commerce — Cache-Control Header Parser","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-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"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_3OTdkb4Z4mw9X72nHe-yT","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":"Parses an HTTP Cache-Control header string into structured directives and cacheability metadata","exampleAgentPrompt":"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'","exampleUseCases":[{"title":"CDN cache policy audit","prompt":"I'm auditing our CDN configuration — can you parse this Cache-Control header and tell me whether the response is publicly cacheable and what the max-age is? Header: 'private, no-store, max-age=0'"},{"title":"Debugging stale content issues","prompt":"We're seeing stale content being served — can you parse this Cache-Control header and extract the stale-while-revalidate and max-age values so I can figure out the caching window? Header: 'public, max-age=600, stale-while-revalidate=60, stale-if-error=3600'"},{"title":"Validating API response cacheability","prompt":"Before we deploy this API endpoint, can you check if this Cache-Control header actually allows caching? Header: 'no-cache, must-revalidate'"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.301Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cache-control-header-parser-3674df91"}