About HTTP Header Reference
Searchable reference of HTTP request and response headers (security, CORS, caching, content negotiation, authentication) with descriptions, examples, and RFC references. Filters by category. Useful when reading dev tools network traffic or configuring a server.
Headers you should know cold
| Category | Headers worth memorizing |
|---|---|
| Security | Strict-Transport-Security, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy |
| CORS | Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Access-Control-Max-Age |
| Caching | Cache-Control, ETag, Last-Modified, Vary |
| Auth | Authorization, WWW-Authenticate, Cookie, Set-Cookie |
| Content | Content-Type, Content-Encoding, Content-Length, Accept, Accept-Language |
| Routing | Host, User-Agent, Referer, Origin |
The reference holds the rest — RFC 9110 plus the practical ones the spec is silent on.
Common workflows
Audit response headers. DevTools → Network → response. Compare against this reference. Spot weak security posture, missing cache directives, broken CORS.
Configure CORS for an API. Look up which Access-Control-* headers are needed, structure the response.
Triage a caching bug. Vary mismatches and missing Cache-Control are the usual suspects. The tool surfaces canonical examples.
Build a webhook receiver. Need Idempotency-Key, Authorization, signature header. Reference shows precedent patterns.
Frequently asked questions
What is the most important security header?
Cache-Control vs Expires?
What does <code>Vary: Accept-Encoding</code> do?
Accept-Encoding request header. Without it, a gzipped cached response might be served to a client that does not accept gzip.CORS in one sentence?
Access-Control-Allow-Origin on the response from the target origin opts in.Custom headers?
X- prefix is deprecated (RFC 6648). Use hyphenated names without prefix — Request-Id, Correlation-Id, Idempotency-Key.ETag vs Last-Modified?
If-None-Match (ETag) over If-Modified-Since.Related tools
Last updated: 2025-01-15