Skip to content
UniKit

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.

Direction

Matched 113 / 113 headers

  • AcceptRequestNegotiation & targeting

    Media types the client can accept in the response, with q values expressing the preference.

  • Accept-CharsetRequestNegotiation & targeting

    Character sets the client can accept; modern browsers practically never send this any more.

  • Accept-EncodingRequestNegotiation & targeting

    Content codings the client accepts, used to negotiate the compression algorithm.

  • Accept-LanguageRequestNegotiation & targeting

    Natural languages the client prefers; the server picks the matching text from it.

  • Accept-PatchResponseNegotiation & targeting

    Advertises the patch media types the resource supports; typically sent with a 415 response.

  • Accept-PostResponseNegotiation & targeting

    Advertises the media types the resource accepts in a POST request.

  • Accept-RangesResponseRange requests

    Declares whether the server supports range requests; bytes means it does.

  • Access-Control-Allow-CredentialsResponseCORS

    Whether credentials such as cookies may be sent; when true the allowed origin cannot be *.

  • Access-Control-Allow-HeadersResponseCORS

    List of request headers allowed in a preflight response.

  • Access-Control-Allow-MethodsResponseCORS

    List of request methods allowed in a preflight response.

  • Access-Control-Allow-OriginResponseCORS

    Origin allowed to access the resource, or the wildcard *.

  • Access-Control-Expose-HeadersResponseCORS

    Whitelist of response headers that front-end JavaScript may read.

  • Access-Control-Max-AgeResponseCORS

    Seconds the preflight result may be cached, which reduces the number of OPTIONS requests.

  • Access-Control-Request-HeadersRequestCORS

    In a preflight request, declares the custom headers the actual request will use.

  • Access-Control-Request-MethodRequestCORS

    In a preflight request, declares the method the actual request will use.

  • AgeResponseCaching & conditional requests

    Seconds the response has already spent in caches; generated by the cache itself.

  • AllowResponseNegotiation & targeting

    List of HTTP methods the resource allows; usually seen on a 405 response.

  • Alt-SvcResponseConnection & transport

    Tells the client the resource is also reachable over another protocol or address, such as h3.

  • Authentication-InfoResponseAuthentication

    Additional information after successful authentication, such as the next nonce.

  • AuthorizationRequestAuthentication

    Carries the client credentials, such as a Bearer token or a Basic user name and password.

  • Cache-ControlBothCaching & conditional requests

    Cache directives that control whether a cache may store, reuse and revalidate a response; the core field of caching behaviour.

  • Cache-StatusResponseCaching & conditional requests

    Status information appended by caches; used to debug cache hits and misses.

  • CDN-Cache-ControlResponseCaching & conditional requests

    Directives that apply only to CDN edge caches; they take precedence over Cache-Control.

  • Clear-Site-DataResponseSecurity policies

    Makes the browser clear cookies, caches or storage for this site; often used on logout.

  • ConnectionBothConnection & transport

    Controls the behaviour of the current connection and lists hop-by-hop header fields.

  • Content-DigestBothPayload & entity

    Structured digest of the entity; supports algorithms such as sha-256.

  • Content-DispositionBothPayload & entity

    States whether the content is shown inline or downloaded as an attachment, and gives the file name.

  • Content-EncodingBothPayload & entity

    Content coding already applied to the entity, such as gzip or br.

  • Content-LanguageBothNegotiation & targeting

    Natural language the content of the entity is intended for.

  • Content-LengthBothPayload & entity

    Size of the entity in bytes; determines where the message body ends.

  • Content-LocationBothNegotiation & targeting

    Alternate resource URI that corresponds to this entity.

  • Content-MD5BothPayload & entityDeprecated

    MD5 digest of the entity; deprecated in favour of the digest header family.

  • Content-RangeBothRange requests

    On a 206 response, states where the current fragment sits inside the full entity.

  • Content-Security-PolicyResponseSecurity policies

    Restricts where scripts, styles, images and other resources may be loaded from; mitigates XSS.

  • Content-Security-Policy-Report-OnlyResponseSecurity policies

    Reports CSP violations without blocking the request; suited to rolling out a policy gradually.

  • Content-Transfer-EncodingBothPayload & entityDeprecated

    The MIME transfer encoding header; obsolete in HTTP.

  • Content-TypeBothNegotiation & targeting

    Media type and character set of the entity; decides how the browser parses the body.

  • CookieRequestCookies & sessions

    Cookie name/value pairs the browser sends back; multiple pairs are separated by semicolons.

  • Cookie2RequestCookies & sessionsDeprecated

    The legacy Cookie header from RFC 2965; obsoleted by RFC 6265.

  • Cross-Origin-Embedder-PolicyResponseCORS

    Puts the document into a cross-origin isolated state, enabling features such as SharedArrayBuffer.

  • Cross-Origin-Opener-PolicyResponseCORS

    Isolates the browsing context so cross-origin windows cannot keep references to each other.

  • Cross-Origin-Resource-PolicyResponseCORS

    Declares which origins may embed the resource; blocks cross-site reads.

  • DateBothCaching & conditional requests

    Time the message was generated; the reference point a cache uses to compute Age.

  • DigestBothPayload & entity

    An early digest header; superseded by Content-Digest and Repr-Digest.

  • Early-DataRequestConnection & transport

    A value of 1 marks the request as coming from TLS early data, which carries a replay risk.

  • ETagResponseCaching & conditional requests

    Identifier of the current entity version, used for conditional requests and cache validation.

  • ExpectRequestConnection & transport

    Declares an expectation the server must meet, such as 100-continue.

  • Expect-CTResponseSecurity policiesDeprecated

    Demanded Certificate Transparency records; abandoned by browsers.

  • ExpiresResponseCaching & conditional requests

    Absolute time at which the response expires; lower priority than max-age in Cache-Control.

  • ForwardedBothProxies & forwarding

    Standardised proxy forwarding information, with the for, by, proto and host parameters.

  • FromRequestTracing & diagnostics

    E-mail address of the user making the request; crawlers and operational scripts identify themselves with it.

  • HostRequestConnection & transport

    Mandatory in HTTP/1.1 requests; names the target virtual host and port.

  • HTTP2-SettingsRequestConnection & transportDeprecated

    Connection parameters carried when upgrading HTTP/1.1 to HTTP/2; removed in RFC 9113.

  • If-MatchRequestCaching & conditional requests

    Runs the request only when the ETag matches; used for optimistic concurrency control.

  • If-Modified-SinceRequestCaching & conditional requests

    Returns 304 when the resource has not been modified since that time.

  • If-None-MatchRequestCaching & conditional requests

    Carries the ETag held by the cache; on a match the server answers 304 to save bandwidth.

  • If-RangeRequestRange requests

    Conditional range request: sends the fragment only if validation passes, otherwise the whole entity.

  • If-Unmodified-SinceRequestCaching & conditional requests

    Refuses the request when the resource was modified after that time; common on PUT.

  • Keep-AliveBothConnection & transport

    De-facto standard: states the idle timeout and maximum request count of a persistent connection.

  • Last-ModifiedResponseCaching & conditional requests

    Time the resource was last modified; used for conditional requests and heuristic caching.

  • LinkBothNegotiation & targeting

    Attaches relationships to other resources; used for preload, pagination and similar cases.

  • LocationResponseNegotiation & targeting

    Redirect target URI, or the URI of a newly created resource.

  • Max-ForwardsRequestProxies & forwarding

    Limits how many further proxy hops a TRACE or OPTIONS request may take.

  • OriginRequestCORS

    Origin of a cross-origin request (scheme + host + port); the starting point of CORS checks.

  • Origin-Agent-ClusterResponseSecurity policies

    Isolates the agent cluster per origin, so same-site but cross-origin pages stop sharing resources.

  • Permissions-PolicyResponseSecurity policies

    Enables or disables browser features such as the camera or geolocation per origin.

  • PragmaBothCaching & conditional requestsDeprecated

    A caching directive from the HTTP/1.0 era; only no-cache is widely recognised.

  • PreferRequestNegotiation & targeting

    Asks the server to honour preferences, such as returning a minimal response or processing asynchronously.

  • Preference-AppliedResponseNegotiation & targeting

    Tells the client which Prefer preferences the server actually applied.

  • Proxy-AuthenticateResponseAuthentication

    On a 407 response, states which authentication scheme the proxy requires.

  • Proxy-Authentication-InfoResponseAuthentication

    Additional information after successful proxy authentication.

  • Proxy-AuthorizationRequestAuthentication

    Authentication credentials presented to a proxy server.

  • Proxy-ConnectionRequestProxies & forwardingDeprecated

    A legacy Netscape header for persistent proxy connections; replaced by Connection.

  • RangeRequestRange requests

    Requests one or more byte ranges of the entity; used to resume interrupted downloads.

  • RefererRequestTracing & diagnostics

    Address of the page that made the request; the misspelling dates back to the HTTP/1.0 spec.

  • Referrer-PolicyResponseSecurity policies

    Controls how much information the Referer header carries when navigating.

  • Repr-DigestBothPayload & entity

    Digest of the representation, independent of the transfer coding.

  • Retry-AfterResponseCaching & conditional requests

    Tells the client how long to wait before retrying; common on 429 and 503.

  • ServerResponseTracing & diagnostics

    Software and version information of the server that produced the response.

  • Server-TimingResponseTracing & diagnostics

    Exposes server-side timings per phase to the browser's performance panel.

  • Set-CookieResponseCookies & sessions

    Cookie issued by the server, optionally with attributes such as Path, HttpOnly and SameSite.

  • Set-Cookie2ResponseCookies & sessionsDeprecated

    The legacy Set-Cookie header from RFC 2965; obsoleted by RFC 6265.

  • Strict-Transport-SecurityResponseSecurity policies

    Requires the browser to reach this site over HTTPS only for the given period.

  • TERequestConnection & transport

    Declares the transfer codings the client accepts; trailers means it accepts trailer fields.

  • Timing-Allow-OriginResponseCORS

    Origins allowed to read the detailed timing data of the Resource Timing API.

  • TraceparentBothTracing & diagnostics

    The standardised trace identifier of W3C Trace Context.

  • TracestateBothTracing & diagnostics

    Vendor-specific tracing state in W3C Trace Context.

  • TrailerBothConnection & transport

    Declares which header fields will appear in the trailer of the message.

  • Transfer-EncodingBothConnection & transport

    Hop-by-hop transfer coding of the message, such as chunked.

  • UpgradeBothConnection & transport

    Requests a switch of the connection to another protocol, such as WebSocket or HTTP/2.

  • User-AgentRequestTracing & diagnostics

    Identifies the client software; used for compatibility handling and statistics.

  • VaryResponseCaching & conditional requests

    Declares which request fields the response varies on, so a cache can pick the right variant.

  • ViaBothProxies & forwarding

    Records every proxy hop the message passed through, together with its protocol version.

  • Want-Content-DigestRequestPayload & entity

    Declares the Content-Digest algorithms the client would like to receive.

  • Want-Repr-DigestRequestPayload & entity

    Declares the Repr-Digest algorithms the client would like to receive.

  • WarningBothCaching & conditional requestsDeprecated

    Warning information produced while caching or transforming; deprecated by RFC 9111.

  • WWW-AuthenticateResponseAuthentication

    On a 401 response, states which authentication scheme is required.

  • X-Amzn-Trace-IdBothTracing & diagnostics

    The tracing header of AWS X-Ray, with the Root, Parent and Sampled fields.

  • X-B3-TraceIdBothTracing & diagnostics

    Zipkin B3 de-facto standard: a 16- or 32-digit hexadecimal trace ID.

  • X-Content-Type-OptionsResponseSecurity policies

    With nosniff it forbids the browser from guessing the MIME type.

  • X-Correlation-IdBothTracing & diagnostics

    De-facto standard: a correlation ID used to trace one flow across systems.

  • X-DNS-Prefetch-ControlResponseSecurity policies

    Controls whether the browser performs DNS prefetching for links on the page.

  • X-Download-OptionsResponseSecurity policies

    Internet Explorer only; noopen stops downloaded files from opening directly in the site's context.

  • X-Forwarded-ForRequestProxies & forwarding

    De-facto standard: records the chain of client and proxy IP addresses.

  • X-Forwarded-HostRequestProxies & forwarding

    De-facto standard: records the original Host the client requested.

  • X-Forwarded-PortRequestProxies & forwarding

    De-facto standard: records the original port the client connected to.

  • X-Forwarded-ProtoRequestProxies & forwarding

    De-facto standard: records the protocol used between the client and the proxy.

  • X-Forwarded-ServerRequestProxies & forwarding

    De-facto standard: records the host name of the proxy that handled the request.

  • X-Frame-OptionsResponseSecurity policies

    Whether the page may be embedded in an iframe; protects against clickjacking.

  • X-Permitted-Cross-Domain-PoliciesResponseSecurity policies

    Policy that restricts whether Flash or PDF readers may fetch crossdomain.xml.

  • X-Real-IPRequestProxies & forwarding

    A de-facto header common with Nginx; keeps only the client IP closest to the proxy.

  • X-Request-IdBothTracing & diagnostics

    De-facto standard: a unique ID per request, which makes it easy to correlate logs across services.

  • X-XSS-ProtectionResponseSecurity policiesDeprecated

    Toggles 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

Related tools