Skip to content

HTTP Headers Reference

Request and response headers for caching, compression, redirects and security.

By ToolzHive · Updated

Names are case-insensitive; values follow field-specific syntax. Inspect actual responses rather than assuming a setting reached the browser.

Download reference CSV

Reference table

HTTP Headers Reference
HeaderExample valuePurpose
Content-Typeapplication/jsonFormat
Content-EncodinggzipRepresentation compression
Accept-Encodinggzip, brAccepted encodings
Cache-Controlpublic, max-age=3600Cache policy
ETag"version-1"Validator
If-None-Match"version-1"Conditional request
VaryAccept-EncodingCache selection
Locationhttps://example.com/newRedirect destination
Retry-After120Retry delay in seconds here
AuthorizationBearer <token>Credentials
Set-Cookiesid=<value>; Secure; HttpOnlyCookie; choose SameSite too
Strict-Transport-Securitymax-age=31536000Require HTTPS after secure response
X-Content-Type-OptionsnosniffRestrict MIME sniffing
Content-Security-Policydefault-src 'self'Resource source policy
Access-Control-Allow-Originhttps://example.comPermitted cross-origin reader

Copyable example

Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding

Compression

A request accepting gzip can receive Content-Encoding: gzip. Vary: Accept-Encoding helps caches distinguish encoding-dependent representations.

Policy changes

Test CSP with the application’s actual resources. HSTS arrives over HTTPS. includeSubDomains extends its scope and should be chosen deliberately.

Try the related tools

  • HTTP Headers Checker — View the HTTP response headers and status code of any URL, with a security header review.
  • GZIP Compression Checker — Test whether a website uses GZIP or Brotli compression and how much it saves.

Sources

Related references

Browse all free resources

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help