HTTP headers reference
What the headers in a request or response do, which values make sense and what goes wrong when they are missing. Header names in the checker's results link here.
Security
- Strict-Transport-SecurityresponseTells browsers to use only HTTPS for this host for a given time.
- Content-Security-PolicyresponseDefines which sources of scripts, styles, images and frames the browser may load for this page.
- Content-Security-Policy-Report-OnlyresponseTests a Content Security Policy without enforcing it; violations are only reported.
- X-Content-Type-OptionsresponseWith the value nosniff, stops browsers from guessing a different content type than the one declared.
- X-Frame-OptionsresponseControls whether other sites may embed the page in a frame, protecting against clickjacking.
- Referrer-PolicyresponseControls how much of the current URL is sent in the Referer header to other pages.
- Permissions-PolicyresponseEnables or disables browser features such as camera, microphone or geolocation for the page and its frames.
- Cross-Origin-Opener-PolicyresponseIsolates the page from windows of other origins that open it or that it opens.
- Cross-Origin-Embedder-PolicyresponseRequires every embedded resource to explicitly allow being loaded by this page.
- Cross-Origin-Resource-PolicyresponseDeclares which origins may load this resource, for example images or scripts.
- X-XSS-ProtectionresponseControlled a now-removed XSS filter in old browsers; today it should be omitted or set to 0.
Caching
- Cache-Controlrequest & responseTells browsers and shared caches whether and how long a response may be stored.
- ETagresponseAn identifier for a specific version of a resource, used to revalidate cached copies.
- Last-ModifiedresponseThe date and time the server believes the resource last changed.
- ExpiresresponseAn absolute date after which the response is considered stale.
- AgeresponseHow many seconds the response has been stored in a shared cache.
- VaryresponseLists request headers that change the response, so caches store separate variants.
- If-None-MatchrequestMakes the request conditional on the resource's ETag having changed.
- If-Modified-SincerequestMakes the request conditional on the resource having changed after the given date.
Content
- Content-Typerequest & responseThe media type of the body, such as text/html; charset=utf-8.
- Content-EncodingresponseThe compression applied to the body, such as gzip, br or zstd.
- Content-Lengthrequest & responseThe size of the body in bytes.
- Accept-EncodingrequestThe compression formats the client can decode.
- Content-DispositionresponseTells the browser to display the body inline or download it as a file.
Redirects & routing
Connection
Cookies & auth
CORS
Client hints & identity
Infrastructure
- X-Powered-ByresponseAnnounces the technology behind the site, such as PHP/8.2 or Express.
- ServerresponseNames the software that handled the request, sometimes including its version.
- DateresponseThe time the response was generated, in GMT.
- CF-Cache-StatusresponseShows whether Cloudflare served the response from its cache.
- CF-RayresponseA Cloudflare request ID; the suffix names the data centre that handled it.
- Viarequest & responseLists the proxies and gateways the message passed through.