A plain-English cheat sheet of more than 50 common HTTP headers for caching, security, content, CORS, cookies, authentication and redirects. Search by name or meaning, filter by group, read what each header does with a ready example, and copy it in one click. Handy when setting up a server, CDN or API.
How to use HTTP Headers Reference
Type part of a header name or a word like cache or cookie.
Or choose a group such as Security or CORS.
Read what the header does and when to use it.
Press Copy to copy the example line.
Tips and good to know
Security headers worth adding to most sites: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, Referrer-Policy and Permissions-Policy.
Use Roast My Website to see which of them your site sends.
Headers are case-insensitive, but the usual spelling is shown here.
Headers worth knowing
A handful of headers solve most real problems: Cache-Control for caching, Content-Type for how a browser reads a response, Location for redirects, and security headers such as Strict-Transport-Security, Content-Security-Policy and X-Content-Type-Options, which protect visitors from downgrade attacks, injected scripts and MIME sniffing.
The headers that matter most
A handful of headers cause most real-world issues. Cache-Control decides how long browsers and CDNs keep a file. Content-Type tells the browser what it is receiving; a wrong type can make a script or stylesheet fail to load. Security headers such as Strict-Transport-Security, Content-Security-Policy and X-Content-Type-Options protect against downgrade and injection attacks.
CORS problems — a browser blocking a request to another domain — are solved on the server with Access-Control-Allow-Origin and related headers, not in the front-end code. Browser developer tools (the Network tab) show the exact headers of every request.
Frequently asked questions
Is this complete?+
It covers the headers most developers need. For every header and detail, see MDN Web Docs or the HTTP specifications.
Does it check my site?+
No, it is a reference. Use Roast My Website to check a live page.
Is anything sent anywhere?+
No.
Is HTTP Headers Reference free?+
Yes. HTTP Headers Reference is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?+
No. This tool runs in your browser, so your input stays on your device.