HTTP headers cheat sheet
A searchable cheat sheet of 113 common HTTP request and response headers with direction and category filters, copy-to-clipboard, example values and RFC references.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Matched 113 / 113 headers
AcceptRequestNegotiation & targetingMedia types the client can accept in the response, with q values expressing the preference.
Accept-CharsetRequestNegotiation & targetingCharacter sets the client can accept; modern browsers practically never send this any more.
Accept-EncodingRequestNegotiation & targetingContent codings the client accepts, used to negotiate the compression algorithm.
Accept-LanguageRequestNegotiation & targetingNatural languages the client prefers; the server picks the matching text from it.
Accept-PatchResponseNegotiation & targetingAdvertises the patch media types the resource supports; typically sent with a 415 response.
Accept-PostResponseNegotiation & targetingAdvertises the media types the resource accepts in a POST request.
Accept-RangesResponseRange requestsDeclares whether the server supports range requests; bytes means it does.
Access-Control-Allow-CredentialsResponseCORSWhether credentials such as cookies may be sent; when true the allowed origin cannot be *.
Access-Control-Allow-HeadersResponseCORSList of request headers allowed in a preflight response.
Access-Control-Allow-MethodsResponseCORSList of request methods allowed in a preflight response.
Access-Control-Allow-OriginResponseCORSOrigin allowed to access the resource, or the wildcard *.
Access-Control-Expose-HeadersResponseCORSWhitelist of response headers that front-end JavaScript may read.
Access-Control-Max-AgeResponseCORSSeconds the preflight result may be cached, which reduces the number of OPTIONS requests.
Access-Control-Request-HeadersRequestCORSIn a preflight request, declares the custom headers the actual request will use.
Access-Control-Request-MethodRequestCORSIn a preflight request, declares the method the actual request will use.
AgeResponseCaching & conditional requestsSeconds the response has already spent in caches; generated by the cache itself.
AllowResponseNegotiation & targetingList of HTTP methods the resource allows; usually seen on a 405 response.
Alt-SvcResponseConnection & transportTells the client the resource is also reachable over another protocol or address, such as h3.
Authentication-InfoResponseAuthenticationAdditional information after successful authentication, such as the next nonce.
AuthorizationRequestAuthenticationCarries the client credentials, such as a Bearer token or a Basic user name and password.
Cache-ControlBothCaching & conditional requestsCache directives that control whether a cache may store, reuse and revalidate a response; the core field of caching behaviour.
Cache-StatusResponseCaching & conditional requestsStatus information appended by caches; used to debug cache hits and misses.
CDN-Cache-ControlResponseCaching & conditional requestsDirectives that apply only to CDN edge caches; they take precedence over Cache-Control.
Clear-Site-DataResponseSecurity policiesMakes the browser clear cookies, caches or storage for this site; often used on logout.
ConnectionBothConnection & transportControls the behaviour of the current connection and lists hop-by-hop header fields.
Content-DigestBothPayload & entityStructured digest of the entity; supports algorithms such as sha-256.
Content-DispositionBothPayload & entityStates whether the content is shown inline or downloaded as an attachment, and gives the file name.
Content-EncodingBothPayload & entityContent coding already applied to the entity, such as gzip or br.
Content-LanguageBothNegotiation & targetingNatural language the content of the entity is intended for.
Content-LengthBothPayload & entitySize of the entity in bytes; determines where the message body ends.
Content-LocationBothNegotiation & targetingAlternate resource URI that corresponds to this entity.
Content-MD5BothPayload & entityDeprecatedMD5 digest of the entity; deprecated in favour of the digest header family.
Content-RangeBothRange requestsOn a 206 response, states where the current fragment sits inside the full entity.
Content-Security-PolicyResponseSecurity policiesRestricts where scripts, styles, images and other resources may be loaded from; mitigates XSS.
Content-Security-Policy-Report-OnlyResponseSecurity policiesReports CSP violations without blocking the request; suited to rolling out a policy gradually.
Content-Transfer-EncodingBothPayload & entityDeprecatedThe MIME transfer encoding header; obsolete in HTTP.
Content-TypeBothNegotiation & targetingMedia type and character set of the entity; decides how the browser parses the body.
CookieRequestCookies & sessionsCookie name/value pairs the browser sends back; multiple pairs are separated by semicolons.
Cookie2RequestCookies & sessionsDeprecatedThe legacy Cookie header from RFC 2965; obsoleted by RFC 6265.
Cross-Origin-Embedder-PolicyResponseCORSPuts the document into a cross-origin isolated state, enabling features such as SharedArrayBuffer.
Cross-Origin-Opener-PolicyResponseCORSIsolates the browsing context so cross-origin windows cannot keep references to each other.
Cross-Origin-Resource-PolicyResponseCORSDeclares which origins may embed the resource; blocks cross-site reads.
DateBothCaching & conditional requestsTime the message was generated; the reference point a cache uses to compute Age.
DigestBothPayload & entityAn early digest header; superseded by Content-Digest and Repr-Digest.
Early-DataRequestConnection & transportA value of 1 marks the request as coming from TLS early data, which carries a replay risk.
ETagResponseCaching & conditional requestsIdentifier of the current entity version, used for conditional requests and cache validation.
ExpectRequestConnection & transportDeclares an expectation the server must meet, such as 100-continue.
Expect-CTResponseSecurity policiesDeprecatedDemanded Certificate Transparency records; abandoned by browsers.
ExpiresResponseCaching & conditional requestsAbsolute time at which the response expires; lower priority than max-age in Cache-Control.
ForwardedBothProxies & forwardingStandardised proxy forwarding information, with the for, by, proto and host parameters.
FromRequestTracing & diagnosticsE-mail address of the user making the request; crawlers and operational scripts identify themselves with it.
HostRequestConnection & transportMandatory in HTTP/1.1 requests; names the target virtual host and port.
HTTP2-SettingsRequestConnection & transportDeprecatedConnection parameters carried when upgrading HTTP/1.1 to HTTP/2; removed in RFC 9113.
If-MatchRequestCaching & conditional requestsRuns the request only when the ETag matches; used for optimistic concurrency control.
If-Modified-SinceRequestCaching & conditional requestsReturns 304 when the resource has not been modified since that time.
If-None-MatchRequestCaching & conditional requestsCarries the ETag held by the cache; on a match the server answers 304 to save bandwidth.
If-RangeRequestRange requestsConditional range request: sends the fragment only if validation passes, otherwise the whole entity.
If-Unmodified-SinceRequestCaching & conditional requestsRefuses the request when the resource was modified after that time; common on PUT.
Keep-AliveBothConnection & transportDe-facto standard: states the idle timeout and maximum request count of a persistent connection.
Last-ModifiedResponseCaching & conditional requestsTime the resource was last modified; used for conditional requests and heuristic caching.
LinkBothNegotiation & targetingAttaches relationships to other resources; used for preload, pagination and similar cases.
LocationResponseNegotiation & targetingRedirect target URI, or the URI of a newly created resource.
Max-ForwardsRequestProxies & forwardingLimits how many further proxy hops a TRACE or OPTIONS request may take.
OriginRequestCORSOrigin of a cross-origin request (scheme + host + port); the starting point of CORS checks.
Origin-Agent-ClusterResponseSecurity policiesIsolates the agent cluster per origin, so same-site but cross-origin pages stop sharing resources.
Permissions-PolicyResponseSecurity policiesEnables or disables browser features such as the camera or geolocation per origin.
PragmaBothCaching & conditional requestsDeprecatedA caching directive from the HTTP/1.0 era; only no-cache is widely recognised.
PreferRequestNegotiation & targetingAsks the server to honour preferences, such as returning a minimal response or processing asynchronously.
Preference-AppliedResponseNegotiation & targetingTells the client which Prefer preferences the server actually applied.
Proxy-AuthenticateResponseAuthenticationOn a 407 response, states which authentication scheme the proxy requires.
Proxy-Authentication-InfoResponseAuthenticationAdditional information after successful proxy authentication.
Proxy-AuthorizationRequestAuthenticationAuthentication credentials presented to a proxy server.
Proxy-ConnectionRequestProxies & forwardingDeprecatedA legacy Netscape header for persistent proxy connections; replaced by Connection.
RangeRequestRange requestsRequests one or more byte ranges of the entity; used to resume interrupted downloads.
RefererRequestTracing & diagnosticsAddress of the page that made the request; the misspelling dates back to the HTTP/1.0 spec.
Referrer-PolicyResponseSecurity policiesControls how much information the Referer header carries when navigating.
Repr-DigestBothPayload & entityDigest of the representation, independent of the transfer coding.
Retry-AfterResponseCaching & conditional requestsTells the client how long to wait before retrying; common on 429 and 503.
ServerResponseTracing & diagnosticsSoftware and version information of the server that produced the response.
Server-TimingResponseTracing & diagnosticsExposes server-side timings per phase to the browser's performance panel.
Set-CookieResponseCookies & sessionsCookie issued by the server, optionally with attributes such as Path, HttpOnly and SameSite.
Set-Cookie2ResponseCookies & sessionsDeprecatedThe legacy Set-Cookie header from RFC 2965; obsoleted by RFC 6265.
Strict-Transport-SecurityResponseSecurity policiesRequires the browser to reach this site over HTTPS only for the given period.
TERequestConnection & transportDeclares the transfer codings the client accepts; trailers means it accepts trailer fields.
Timing-Allow-OriginResponseCORSOrigins allowed to read the detailed timing data of the Resource Timing API.
TraceparentBothTracing & diagnosticsThe standardised trace identifier of W3C Trace Context.
TracestateBothTracing & diagnosticsVendor-specific tracing state in W3C Trace Context.
TrailerBothConnection & transportDeclares which header fields will appear in the trailer of the message.
Transfer-EncodingBothConnection & transportHop-by-hop transfer coding of the message, such as chunked.
UpgradeBothConnection & transportRequests a switch of the connection to another protocol, such as WebSocket or HTTP/2.
User-AgentRequestTracing & diagnosticsIdentifies the client software; used for compatibility handling and statistics.
VaryResponseCaching & conditional requestsDeclares which request fields the response varies on, so a cache can pick the right variant.
ViaBothProxies & forwardingRecords every proxy hop the message passed through, together with its protocol version.
Want-Content-DigestRequestPayload & entityDeclares the Content-Digest algorithms the client would like to receive.
Want-Repr-DigestRequestPayload & entityDeclares the Repr-Digest algorithms the client would like to receive.
WarningBothCaching & conditional requestsDeprecatedWarning information produced while caching or transforming; deprecated by RFC 9111.
WWW-AuthenticateResponseAuthenticationOn a 401 response, states which authentication scheme is required.
X-Amzn-Trace-IdBothTracing & diagnosticsThe tracing header of AWS X-Ray, with the Root, Parent and Sampled fields.
X-B3-TraceIdBothTracing & diagnosticsZipkin B3 de-facto standard: a 16- or 32-digit hexadecimal trace ID.
X-Content-Type-OptionsResponseSecurity policiesWith nosniff it forbids the browser from guessing the MIME type.
X-Correlation-IdBothTracing & diagnosticsDe-facto standard: a correlation ID used to trace one flow across systems.
X-DNS-Prefetch-ControlResponseSecurity policiesControls whether the browser performs DNS prefetching for links on the page.
X-Download-OptionsResponseSecurity policiesInternet Explorer only; noopen stops downloaded files from opening directly in the site's context.
X-Forwarded-ForRequestProxies & forwardingDe-facto standard: records the chain of client and proxy IP addresses.
X-Forwarded-HostRequestProxies & forwardingDe-facto standard: records the original Host the client requested.
X-Forwarded-PortRequestProxies & forwardingDe-facto standard: records the original port the client connected to.
X-Forwarded-ProtoRequestProxies & forwardingDe-facto standard: records the protocol used between the client and the proxy.
X-Forwarded-ServerRequestProxies & forwardingDe-facto standard: records the host name of the proxy that handled the request.
X-Frame-OptionsResponseSecurity policiesWhether the page may be embedded in an iframe; protects against clickjacking.
X-Permitted-Cross-Domain-PoliciesResponseSecurity policiesPolicy that restricts whether Flash or PDF readers may fetch crossdomain.xml.
X-Real-IPRequestProxies & forwardingA de-facto header common with Nginx; keeps only the client IP closest to the proxy.
X-Request-IdBothTracing & diagnosticsDe-facto standard: a unique ID per request, which makes it easy to correlate logs across services.
X-XSS-ProtectionResponseSecurity policiesDeprecatedToggles the XSS filter of older browsers; removed from modern ones.
What this tool does
- Reach for the right header while writing an API or debugging a proxy: search 113 common request and response headers by name, meaning or example value, each with its RFC reference.
- Work through the caching families in one place (Cache-Control, ETag, Vary, Age and friends) when you are untangling browser versus CDN caching.
- Set up CORS by comparing the whole Origin / Access-Control-Allow-* family, so you can tell which field belongs in the preflight request and which in the preflight response.
- Harden a site by reviewing the security block — CSP, HSTS, X-Frame-Options, Permissions-Policy — and copying the example values as a starting point.
Example
Input
cache-control
Output
Cache-Control: public, max-age=3600, must-revalidate
Exact name matches rank first, so this entry is the top hit for "cache-control". Copying yields the Name: example line, ready to drop into a config file or a curl command.
Frequently asked questions
Why can I search by meaning instead of the field name?
Matching covers the field name, its description and its example value, ranked as exact name > name prefix > name contains > meaning contains > example contains, with ties broken alphabetically. Search "caching" to pull a whole family, or "strict" to find entries whose example values contain the word.
Are deprecated headers still worth reading?
Yes, as long as you know their status. Pragma, Warning, Cookie2, X-XSS-Protection, Expect-CT and Content-MD5 carry a deprecated badge: they matter for reading old configs and old logs, but new projects should not use them.
How do I tell request, response and general headers apart?
Every entry has a direction badge. Request fields (Accept, Authorization, Host) are sent by the client, response fields (Set-Cookie, ETag, Location) come back from the server, and fields marked both (Cache-Control, Content-Type, Date) can appear in either. The direction filter keeps just one kind.
How reliable is the data?
Each entry cites its source: IETF specs such as RFC 9110/9111/9112, or standards like the Fetch Standard, HTML Standard and W3C Trace Context. A handful of de-facto fields (X-Forwarded-For, X-Request-Id) are labelled as such. A built-in check verifies duplicate names and valid direction/category values.
Can I paste the copied line straight into a config file?
Yes — the copy button produces a single Name: example line that works in Nginx, Apache and Caddy configs or a curl -H flag. The examples are typical rather than definitive, so tune max-age, allowed origins and similar values to your own setup.
Keywords:httphttp headersheadercheat sheetcache-controlcorsrfc