{"uid":"cap_gNxDMFlXB0T2LuaA5Qppn","slug":"cache-control-directive-diff-4c4724ee","name":"Cache Control Directive Diff","description":"Cache Control Directive Diff: Cache Control Directive Diff finds added, removed, and changed Cache-Control directives from bounded caller-supplied values without an external provider. Call Cache Control Directive Diff 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 Directive Diff as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base.…","url":"https://api.delx.ai/api/v1/x402/cache-control-directive-diff","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_JSLrB7DukiQMBamvly6am","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":"Compares two Cache-Control header strings and returns a structured diff of added, removed, and changed directives with a pass/advisory status.","exampleAgentPrompt":"Can you diff these two Cache-Control headers and tell me what directives were added, removed, or changed? Before: 'max-age=3600, public' and after: 'max-age=600, no-store, private'.","exampleUseCases":[{"title":"Detect cache policy regression in CI","prompt":"I'm running a pipeline check — can you compare these two Cache-Control headers and flag any directives that were removed or changed? Before: 'max-age=86400, public, must-revalidate' and after: 'max-age=86400, public'."},{"title":"Security audit of no-store removal","prompt":"Can you diff these Cache-Control values and tell me if 'no-store' or 'private' was dropped? Before: 'no-store, no-cache, private' and after: 'max-age=300, public'."},{"title":"Validate redirect response caching behavior","prompt":"After following a redirect I got a different Cache-Control header — can you diff the before 'no-cache, must-revalidate' and after 'max-age=3600, stale-while-revalidate=60' and give me a pass or advisory on whether the cache behavior changed significantly?"}],"resultDescription":"Returns a versioned deterministic JSON object containing normalized representations of both input headers, a structured diff listing added, removed, and changed Cache-Control directives, and an explicit pass or advisory status indicating whether the change is noteworthy.","failureModes":["Malformed or unparseable Cache-Control header strings may yield empty or partial diffs","Input strings exceeding 8192 characters will be rejected","Payment failure via x402 will block the request","If both before and after are identical, the diff returns empty change sets with a pass status"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, structured diff of Cache-Control headers rather than a generic string comparison. It is purpose-built for HTTP caching semantics, normalizes directive values before comparing, and returns an explicit advisory status — making it ideal for agent workflows that need to decide whether to accept, cache, redirect, or retry a web response based on caching policy changes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:37.510Z","isFirstParty":false}