{"uid":"cap_l21sJMlTfHoc8FY5MHS-w","slug":"expires-header-validate-0f75517b","name":"Expires Header Validate","description":"Expires Header Validate: Expires Header Validate compares Date and Expires timestamps for an explicit cache lifetime from bounded caller-supplied values without an external provider. Call Expires Header Validate 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 Expires Header Validate as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-part…","url":"https://api.delx.ai/api/v1/x402/expires-header-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date_epoch":{"type":"integer","description":"Date Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."},"expires_epoch":{"type":"integer","description":"Expires Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"non_negative":true,"lifetime_seconds":300},"schema":"delx/util-expires-header-validate/v1","status":"pass","evidence":{"retained":false,"input_sha256":"ffaeb927a9888a663105db7e7acc72e617fcdb3b01fc28c069de689945d7f1ce","external_calls":0},"operation":"web_reliability:expires_header_validate"}},"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_rlkTa0vqefT2sGL5yN893","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":"Validates HTTP cache lifetime by comparing Date and Expires header timestamps and returns a deterministic pass/advisory result.","exampleAgentPrompt":"Check if this HTTP response has a valid Expires cache lifetime — the Date header is epoch 1717200000 and the Expires header is epoch 1717286400.","exampleUseCases":[{"title":"Pre-cache response validation","prompt":"Before I store this API response in my cache, validate that its Expires header is correctly set — the Date epoch is 1717200000 and the Expires epoch is 1717286400."},{"title":"Redirect response cache audit","prompt":"I'm about to follow a redirect — can you check if the response has a valid explicit cache lifetime? Date epoch is 1717100000 and Expires epoch is 1717110000."},{"title":"Retry logic cache check","prompt":"I need to decide whether to retry this web request or use a cached response — validate the cache lifetime using Date epoch 1717500000 and Expires epoch 1717450000 and tell me if it passes."}],"resultDescription":"Returns versioned deterministic JSON containing normalized web evidence (the input timestamps), the computed cache lifetime finding (e.g. lifetime in seconds), and an explicit pass or advisory status indicating whether the Expires header represents a valid future cache lifetime relative to the Date header.","failureModes":["Missing or null date_epoch or expires_epoch fields returns a validation error","Non-integer epoch values cause schema rejection","Expires epoch earlier than Date epoch returns an advisory (not a pass) status","Payment of $0.001 USDC via x402 on Base must succeed or request is rejected"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, zero-dependency check of HTTP Expires and Date header timestamps — especially in agentic pipelines that accept, cache, redirect, or retry caller-supplied web responses and need an auditable pass/advisory result before proceeding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:50:12.845Z","isFirstParty":false}