{"uid":"cap_WcvrZXHn1da7Lh29y96Rd","slug":"saylor-innovations-cache-control-header-analyzer-3dd1c3dd","name":"Saylor Innovations Cache-Control Header Analyzer","description":"Analyze a Cache-Control header - browser and CDN freshness, no-store and no-cache handling, stale-while-revalidate and conflicting directive warnings","url":"https://saylorinnovations.com/api/dev/cache-control?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["header"],"properties":{"header":{"type":"string","description":"Cache-Control header value, e.g. public, max-age=3600"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["header","verdict","warnings"],"properties":{"header":{"type":"string","description":"Header as supplied"},"source":{"type":"string","description":"Data source the values come from"},"verdict":{"type":"string","description":"Overall assessment derived from the listed reasons"},"warnings":{"type":"array","description":"Conflicting or ineffective directives"},"immutable":{"type":["boolean","null"],"description":"True when the immutable directive is set"},"directives":{"type":"object","properties":{"public":{"type":["boolean","null"],"description":"public directive present"},"max-age":{"type":["string","null"],"description":"max-age in seconds"},"s-maxage":{"type":["string","null"],"description":"s-maxage in seconds"},"stale-while-revalidate":{"type":["string","null"],"description":"stale-while-revalidate in seconds"}},"description":"Parsed directives and values"},"browser_cacheable":{"type":"boolean","description":"Browser cacheable"},"browser_fresh_for":{"type":"string","description":"Browser fresh for"},"revalidate_every_time":{"type":["boolean","null"],"description":"Revalidate every time (UTC unless a time zone is given)"},"shared_cache_cacheable":{"type":"boolean","description":"Shared cache cacheable"},"shared_cache_fresh_for":{"type":"string","description":"Shared cache fresh for"},"stale_if_error_seconds":{"description":"Stale if error, in seconds"},"browser_fresh_for_seconds":{"type":["number","null"],"description":"Browser fresh for, in seconds"},"shared_cache_fresh_for_seconds":{"type":["number","null"],"description":"Shared cache fresh for, in seconds"},"stale_while_revalidate_seconds":{"type":["number","null"],"description":"Stale while revalidate, in seconds"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iHbyHVYp6KBfP7AL_mml0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and analyzes a Cache-Control header value, returning browser and CDN cacheability, freshness durations, directive breakdown, and warnings about conflicting or ineffective directives","exampleAgentPrompt":"Can you analyze this Cache-Control header for me: 'public, max-age=3600, stale-while-revalidate=60' — tell me how long browsers and CDNs will cache it, and whether there are any conflicting or problematic directives?","exampleUseCases":[{"title":"Diagnose conflicting cache directives","prompt":"I have this Cache-Control header: 'no-store, max-age=3600' — can you analyze it and tell me if there are any conflicts or warnings I should know about?"},{"title":"Check CDN freshness for static assets","prompt":"Analyze this Cache-Control header value 'public, s-maxage=86400, max-age=3600, immutable' and tell me how long CDNs versus browsers will consider the response fresh."},{"title":"Verify no-cache revalidation behavior","prompt":"What does 'no-cache, must-revalidate' mean for browser and shared cache behavior? Can you parse it and give me a full breakdown of how it will be handled?"}],"resultDescription":"A JSON object containing the original header string, an overall verdict, a list of warnings about conflicting or ineffective directives, a breakdown of parsed directive values (max-age, s-maxage, public, stale-while-revalidate, etc.), boolean flags for browser_cacheable and shared_cache_cacheable, human-readable freshness durations for both browser and shared cache, and additional fields like immutable, revalidate_every_time, and stale_if_error_seconds.","failureModes":["Missing or empty 'header' query parameter returns an error","Malformed or non-standard directive strings may produce incomplete parsed output","Highly unusual or vendor-specific extensions may not be recognized","Network or payment authorization failure returns a 402 or 4xx error"],"whenToPreferThis":"Use this endpoint when you need a quick, structured analysis of a Cache-Control header value without building your own parser — especially useful for diagnosing caching misconfigurations, checking CDN vs browser freshness differences, detecting conflicting directives, or explaining caching behavior to non-experts. Prefer it over manual parsing when you need both human-readable verdicts and machine-readable directive breakdowns in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:53:33.556Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-cache-control-header-analyzer-3dd1c3dd"}