{"category":"web","endpoint":"https://setget.net/v1/tools/cache-control-explain","examples":[{"input":{"value":"public, max-age=3600, s-maxage=86400"},"output":{"directives":[{"meaning":"Any cache may store the response, even one that would normally be treated as private.","name":"public","value":null},{"meaning":"The response is fresh for 1 hour. Caches may reuse it without asking the server during that time.","name":"max-age","value":3600},{"meaning":"Shared caches such as CDNs and proxies may reuse it for 1 day. For them this replaces max-age.","name":"s-maxage","value":86400}],"summary":"Browsers may reuse it for 1 hour without contacting the server; shared caches such as CDNs may reuse it for 1 day.","warnings":[]}},{"input":{"value":"Cache-Control: no-store, max-age=60"},"output":{"directives":[{"meaning":"No cache may store the response at all.","name":"no-store","value":null},{"meaning":"The response is fresh for 1 minute. Caches may reuse it without asking the server during that time.","name":"max-age","value":60}],"summary":"Nothing may store this response: browsers and shared caches fetch it from the server every time.","warnings":["no-store wins over the other directives, so max-age and public have no effect."]},"title":"Conflicting directives"}],"input_schema":{"additionalProperties":false,"properties":{"value":{"description":"The Cache-Control header value (with or without the header name).","examples":["public, max-age=3600, s-maxage=86400"],"maxLength":2000,"type":"string"}},"required":["value"],"type":"object"},"keywords":["cache-control","max-age","no-cache","no-store","s-maxage","caching","cdn","stale-while-revalidate","immutable"],"related":["http-headers-parse","http-status"],"slug":"cache-control-explain","summary":"Explain a Cache-Control header directive by directive and how browsers and CDNs will treat the response.","tier":"inline","title":"Cache-Control explainer","url":"https://setget.net/tools/cache-control-explain"}
