{"uid":"cap_tYejYFoCV7ricIuszbpor","slug":"cache-control-parse-af11a547","name":"Cache Control Parse","description":"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…","url":"https://api.delx.ai/api/v1/x402/cache-control-parse","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_IwyiYNMOaB8hkDPUIBiZd","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 a Cache-Control HTTP header string into typed, normalized policy fields with a deterministic pass/advisory verdict","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Validate response before caching","prompt":"Before I store this API response, can you parse its Cache-Control header 'no-store, no-cache, max-age=0' and tell me whether caching is allowed?"},{"title":"Agent checks redirect cacheability","prompt":"I'm following a redirect and got this Cache-Control header: 'public, max-age=86400, s-maxage=3600'. Parse it and tell me whether I should cache this redirect and for how long."},{"title":"Retry logic based on cache directives","prompt":"I need to decide whether to retry a stale response — here's the Cache-Control header: 'must-revalidate, proxy-revalidate, max-age=600'. Break down the directives and give me a pass or advisory verdict."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:09:08.749Z","isFirstParty":false}