Cache-Control Header Parser
Parse Cache-Control directives, quoted values, duplicate directives and numeric freshness settings with practical interpretation hints.
Start with your input
Edit the example or replace it with your own text.
How to use Cache-Control Header Parser
- Load the included example or provide your own input and settings.
- Choose the operation and review the supported format below.
- Run the tool, inspect the result, and copy or download it.
Inspect a cache policy one directive at a time
Paste a single Cache-Control field value with or without its header name. The parser separates directives without splitting commas inside quoted strings, keeps extension directives and identifies repeated names. Common age and stale-window directives are checked for nonnegative integer values. This helps diagnose a copied response header without confusing a quoted field list with several unrelated directives.
Distinguish storage from revalidation
A no-cache directive asks for validation before reuse; it does not itself prohibit storing a response. No-store addresses storage. The report provides these narrow interpretation hints and flags obvious conflicts such as public together with private. It does not calculate the complete cache outcome, which also depends on status, request headers, Age, freshness, Vary and cache implementation. Check actual responses after changing a server or CDN configuration.
Example input
Cache-Control: public, max-age=3600, stale-while-revalidate=60
Does Cache-Control Header Parser upload my input?
No. This tool processes input locally in your browser without calling a conversion API.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.