HTTP Headers Reference
Complete reference of HTTP headers with descriptions and examples.
AcceptMedia types the client can process
application/json, text/htmlAccept-EncodingEncoding algorithms the client supports
gzip, deflate, brAccept-LanguageNatural languages the client prefers
en-US,en;q=0.9AuthorizationCredentials for authenticating the client
Bearer eyJhbGc...Cache-ControlDirectives for caching mechanisms
no-cache, no-storeContent-TypeMedia type of the request body
application/jsonCookieHTTP cookies previously sent by the server
session=abc123HostDomain name of the server
api.example.comOriginOrigin of the request (for CORS)
https://example.comRefererAddress of the previous page
https://example.com/pageUser-AgentInformation about the client application
Mozilla/5.0...X-API-KeyAPI key for authentication
sk_live_abc123X-Request-IDUnique identifier for the request
req-123-456Access-Control-Allow-OriginOrigins allowed to access the resource (CORS)
*Cache-ControlCaching directives for the response
max-age=3600, publicContent-EncodingEncoding used on the response body
gzipContent-LengthSize of the response body in bytes
1234Content-TypeMedia type of the response body
application/json; charset=utf-8ETagIdentifier for a specific version of the resource
"abc123"ExpiresDate/time after which the response is stale
Thu, 01 Dec 2024 16:00:00 GMTLast-ModifiedDate the resource was last modified
Wed, 21 Oct 2023 07:28:00 GMTLocationURL to redirect to
https://example.com/new-pageSet-CookieSend cookies from server to client
session=abc; HttpOnly; SecureX-RateLimit-LimitMaximum number of requests allowed
1000X-RateLimit-RemainingNumber of requests remaining
999X-RateLimit-ResetTime when the rate limit resets
1640995200Content-Security-PolicyControls resources the browser can load
default-src 'self'Strict-Transport-SecurityForces HTTPS connections
max-age=31536000; includeSubDomainsX-Content-Type-OptionsPrevents MIME type sniffing
nosniffX-Frame-OptionsControls iframe embedding
DENYX-XSS-ProtectionControls XSS filtering
1; mode=blockReferrer-PolicyControls referrer information sent
strict-origin-when-cross-originPermissions-PolicyControls browser features
geolocation=(), microphone=()AgeTime in seconds the object was in proxy cache
3600Cache-ControlDirectives for caching mechanisms
public, max-age=31536000Clear-Site-DataClears browsing data
"cache", "cookies"ETagIdentifier for resource version
W/"abc123"If-MatchConditional request based on ETag
"abc123"If-None-MatchConditional request if ETag differs
"abc123"If-Modified-SinceConditional request based on date
Wed, 21 Oct 2023 07:28:00 GMTVaryHeaders that affect cache matching
Accept-Encoding, Origin