HTTP Headers Reference

Search by name or by what you are trying to do, such as "cache" or "cors". Each header says who sends it, what it does, and an example you can copy.

How it works

HTTP headers are the "Name: value" lines that travel before the body of every request and response. They carry everything that is not the content itself: its format, its size, how long to cache it, who is asking and what they are allowed to do.

Some headers are sent only by the client (request headers such as User-Agent), some only by the server (response headers such as Set-Cookie), and some by both (Content-Type). Each card says which. Security headers, the ones a site audit checks for, have their own group.

The list is bundled with this page and searched in your browser. The Copy button copies a full "Name: value" line, ready to paste into a curl command, a config file or a test.

How to use it

  1. 1 Type a header name, or a word for what you want, such as "cache", "cookie" or "cors".
  2. 2 Read what the header does and who sends it.
  3. 3 Press Copy to copy the example line, then change the value to fit your case.
  4. 4 Clear the box to browse all headers by group.

Good to know

  • Header names are not case-sensitive. HTTP/2 and HTTP/3 send them in lower case, so content-type and Content-Type are the same header.
  • To see a site's real headers, open your browser's developer tools, go to the Network tab and click a request.
  • Headers starting with X- are old conventions, not standards. Most have a standard replacement, such as Forwarded for X-Forwarded-For.
  • A CORS error is fixed on the server, by its Access-Control-Allow-* response headers, never by headers the browser sends.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Reading one real response, header by header

Headers make most sense when you read a real set of them in order. Here is the kind of response a well-run site sends for a stylesheet, with each line explained the way you would explain it to a colleague. The numbers are worth checking yourself, because getting a cache time wrong by a factor of a thousand is an easy mistake.

The response starts with Content-Type: text/css; charset=utf-8, so the browser knows to read it as CSS in UTF-8. Content-Encoding: br says the body was compressed with Brotli, which the browser undoes before reading. Then comes Cache-Control: public, max-age=31536000, immutable. The max-age is in seconds: 31,536,000 divided by 86,400 seconds in a day is exactly 365 days. "public" lets shared caches such as a CDN keep it, and "immutable" tells the browser not to check back even when the visitor presses reload. This is only safe because the file name contains a hash of its content, so a new version gets a new URL.

The HTML page itself, on the other hand, gets Cache-Control: no-cache and an ETag such as "33a64df5". On the next visit, the browser asks with If-None-Match: "33a64df5". If nothing changed, the server answers 304 Not Modified with no body, which is quick. The page also carries Strict-Transport-Security: max-age=63072000; includeSubDomains. That is 63,072,000 seconds, or 730 days, two years of the browser refusing to use plain http:// for the site or any of its subdomains.

Now a cross-site request. A page at https://app.example.com calls fetch() on https://api.example.com with a JSON body. Because of the JSON content type, the browser first sends OPTIONS with Origin: https://app.example.com and Access-Control-Request-Method: POST. The API must answer with Access-Control-Allow-Origin: https://app.example.com and Access-Control-Allow-Headers: Content-Type. If it also wants cookies, it adds Access-Control-Allow-Credentials: true, and then the origin may not be "*". Only after that does the real POST go out.

A short list like this one has limits. There are well over a hundred registered headers, and this page covers the sixty or so you meet in everyday web work, not every WebDAV or mail header. Browsers also differ in details, such as which Sec- headers they send, so treat the examples as typical values, not the only correct ones. For the exact grammar of a header, the RFC or MDN page for it is the final word; this page is for knowing which header you need and what it does.

Frequently asked questions

Which security headers should every site send?

A good start is Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options: nosniff, Referrer-Policy and frame-ancestors in the CSP (or X-Frame-Options). Add Permissions-Policy to switch off features you do not use, and COOP and COEP if you need cross-origin isolation.

What is the difference between no-cache and no-store?

no-cache lets the browser keep a copy but makes it check with the server before each use, which is cheap when the answer is 304 Not Modified. no-store forbids keeping a copy at all. Use no-store for private data such as bank pages.

Why does my request send an OPTIONS request first?

That is a CORS preflight. Before a cross-site request with a JSON body, a custom header or a method other than GET, HEAD or POST, the browser asks the server with OPTIONS whether it is allowed. The server answers with Access-Control-Allow-* headers.

Is Referer really spelled wrong?

Yes. The misspelling was in the original HTTP specification in 1996 and could not be fixed without breaking every server. The newer Referrer-Policy header uses the correct spelling, so both spellings now exist side by side.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.