HTTP Response Headers

Standard

Access-Control-Allow-Origin, Access-Control-Allow-Credentials,

Access-Control-Expose-Headers,

Access-Control-Max-Age,

Access-Control-Allow-Methods,

Access-Control-Allow-Headers: Specifying which web sites can participate in cross-origin resource sharing

Accept-Patch: Specifies which patch document formats this server supports

Accept-Ranges: What partial content range types this server supports via byte serving.

Age: The age the object has been in a proxy cache in seconds.

Allow: Valid methods for a specified resource. To be used for a 405 Method not allowed.

Alt-Svc: A server uses "Alt-Svc" header (meaning Alternative Services) to indicate that its resources can also be accessed at a different network location (host or port) or using a different protocol. When using HTTP/2, servers should instead send an ALTSVC frame. 

Cache-Control: Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds.

Connection: Control options for the current connection and list of hop-by-hop response fields. Must not be used with HTTP/2.

Content-Disposition: An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. Quotes are necessary with special characters.

Content-Encoding: The type of encoding used on the data. See HTTP compression.

Content-Language: The natural language or languages of the intended audience for the enclosed content.

Content-Length: The length of the response body in octets (8-bit bytes).

Content-Location: An alternate location for the returned data.

Content-MD5: A Base64-encoded binary MD5 sum of the content of the response.

Content-Range: Where in a full-body message this partial message belongs.

Content-Type: The MIME type of this content.

Date: The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).

Delta-Base: Specifies the delta-encoding entity-tag of the response.

ETag: An identifier for a specific version of a resource, often a message digest.

Expires: Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231).

IM: Instance-manipulations applied to the response.

Last-Modified: The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231).

Link: Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988.

Location: Used in redirection, or when a new resource has been created.

P3P: This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". However, P3P did not take off, most browsers have never fully implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third-party cookies.

Pragma: Implementation-specific fields that may have various effects anywhere along the request-response chain.

Proxy-Authenticate: Request authentication to access the proxy.

Public-Key-Pins[51]: HTTP Public Key Pinning, announces hash of website's authentic TLS certificate.

Retry-After: If an entity is temporarily unavailable, this instructs the client to try again later. Value could be a specified time (in seconds) or an HTTP-date.

Server: A name for the server.

Set-Cookie: An HTTP cookie.

Strict-Transport-Security: A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.

Trailer: The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer-coding.

Transfer-Encoding: The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity. Must not be used with HTTP/2.

Tk: Tracking Status header, value suggested to be sent in response to a DNT(do-not-track), possible values:
                    "!" — under construction
                    "?" — dynamic
                    "G" — a gateway to multiple parties
                    "N" — not tracking
                    "T" — tracking
                    "C" — tracking with consent
                    "P" — tracking only if consented
                    "D" — disregarding DNT
                    "U" — updated

Upgrade: Ask the client to upgrade to another protocol. Must not be used in HTTP/2.

Vary: Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.

Via: Informs the client of proxies through which the response was sent.

Warning: A general warning about possible problems with the entity body.

WWW-Authenticate: Indicates the authentication scheme that should be used to access the requested entity.

X-Frame-Options: Clickjacking protection: deny - no rendering within a frame, sameorigin - no rendering if origin mismatch, allow-from - allow from a specified location, allowall - non-standard, allow from any location.



Non-standard

X-WebKit-CSP: Content Security Policy definition.

Refresh: Used in redirection, or when a new resource has been created. This refresh redirects after 5 seconds. Header extension introduced by Netscape and supported by most web browsers.

Status: CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 7230.

Timing-Allow-Origin: The Timing-Allow-Origin response header specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.

X-Content-Duration: Provide the duration of the audio or video in seconds; only supported by Gecko browsers.

X-Content-Type-Options: The only defined value, "nosniff", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions.

X-Powered-By: Specifies the technology (e.g. ASP.NET, PHP, JBoss) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version).

X-Request-ID, X-Correlation-ID: Correlates HTTP requests between a client and a server.

X-UA-Compatible: Recommends the preferred rendering engine (often a backward-compatibility mode) to use to display the content. Also used to activate Chrome Frame in Internet Explorer.

X-XSS-Protection: Cross-site scripting (XSS) filter.