HTTP Header Reference

Look up request and response headers, their direction and typical values.

API Runs in your browser Shareable link
Search

Runs entirely in your browser. Your data isn't uploaded — this page makes no network request with anything you type, which you can verify in your browser's network tab. How this works.

What is the HTTP Header Reference?

HTTP headers are where caching, authentication, content negotiation, CORS and most security controls actually live. There are a lot of them, they are specified across many documents, and the ones you need are rarely the ones you remember.

This is a searchable reference: which direction each header travels, what it controls, example values that are actually correct, and notes on the security or caching implications. It is a lookup table for building requests and reviewing responses, not a specification replacement.

How to use it

  1. Search by header name or by what you are trying to achieve.
  2. Filter by direction (request or response) or by topic — caching, security, CORS, content negotiation.
  3. Open a header for example values and related headers.

Example

Looking up Cache-Control.

Input
cache-control
Result
Cache-Control — request and response
Directs caching behaviour for both shared and private caches.

Examples
  public, max-age=31536000, immutable   hashed static assets
  private, no-cache                     personalised HTML
  no-store                              responses containing secrets

Features

  • Request and response headers, clearly labelled by direction
  • Topic filters: caching, security, CORS, authentication, content negotiation
  • Realistic example values, copyable individually
  • Notes on deprecated headers and what replaced them
  • A security-headers checklist for reviewing a response

Frequently asked questions

Which security headers should every response set?
At minimum: Strict-Transport-Security, X-Content-Type-Options: nosniff, a Content-Security-Policy, and a Referrer-Policy. X-Frame-Options is superseded by CSP frame-ancestors but is still worth sending for older clients.
Cache-Control or Expires?
Cache-Control. It is the modern directive and takes precedence where both are present. Expires is an absolute date, which is fragile across clock skew; Cache-Control max-age is relative.
Why is my CORS request failing?
Usually because the preflight response is missing something: Access-Control-Allow-Origin must echo a specific origin (not * ) when credentials are involved, and the methods and headers the browser announced in the preflight must be explicitly allowed.
Esc

Loading the catalog…