HTTP Headers

Fetch a Uniform Resource Locator (URL) and inspect response headers, status code, and redirect chain.

An HTTP response, annotated

HTTP/2 200
content-type: text/html; charset=utf-8
content-encoding: br
cache-control: public, max-age=3600
age: 1240
strict-transport-security: max-age=31536000; includeSubDomains
set-cookie: session=...; Secure; HttpOnly; SameSite=Lax
  • 200 is the status code: the request succeeded.
  • content-type states what the body is and its character set. A wrong type makes a browser download a page instead of showing it, or show garbled characters.
  • content-encoding: br means the body is compressed with Brotli; gzip is the older method. No such header on a text response means it is sent uncompressed.
  • cache-control allows caches to keep the response for 3,600 s. age: 1240 shows that a cache served this copy and has held it for 1,240 s.
  • strict-transport-security tells browsers to use HTTPS only for the next year.
  • The cookie attributes restrict the cookie to HTTPS, hide it from scripts and limit cross-site sending.

Reading a redirect chain

http://example.com/           301  →  https://example.com/
https://example.com/          301  →  https://www.example.com/
https://www.example.com/      200
  • 301 and 308 are permanent: browsers and search engines remember the new address. 302 and 307 are temporary and are asked again every time.
  • 307 and 308 keep the request method. After a 301 or 302, a POST is usually repeated as a GET and its body is lost.
  • Each hop is a full round trip. The chain above takes two extra requests; redirecting http://example.com/ straight to https://www.example.com/ saves one.
  • A chain that returns to an address it already visited is a loop; browsers stop after about 20 hops with an error.
  • A redirect from HTTPS to HTTP removes the encryption and is almost always a misconfiguration.

Related tools

Security headers break silently. HSTS, CSP, and X-Frame-Options all need ongoing validation.

Monitor HTTP headers continuously

  • ✓Header change detection
  • ✓Security score tracking
  • ✓HSTS / CSP / CORS monitoring
  • ✓Email + Slack alerts
  • ✓Historical diff view
  • ✓SSL correlation
Start monitoring → 14-day free trial · No credit card required

Frequently Asked Questions

What are HTTP response headers?

HyperText Transfer Protocol (HTTP) response headers are key-value pairs the server sends with every response, before the body. They tell the browser how to handle the content — caching policy, content type, security directives, cookies, redirects, and more. Inspecting them is the first step in debugging caching problems, Cross-Origin Resource Sharing (CORS) errors, and security issues.

What headers should every website have for security?
  • Strict-Transport-Security — forces HyperText Transfer Protocol Secure (HTTPS).
  • Content-Security-Policy — restricts what the browser can load.
  • X-Frame-Options or Content Security Policy (CSP) frame-ancestors — prevents clickjacking.
  • X-Content-Type-Options: nosniff — stops Multipurpose Internet Mail Extensions (MIME)-type sniffing.
  • Referrer-Policy — controls how much referrer info is sent.
  • Permissions-Policy — limits access to browser Application Programming Interfaces (APIs).
What does a redirect chain look like?

A redirect chain is a series of 301/302 responses before the browser reaches the final destination. For example: http:// → https:// → https://www. → final page. Each hop adds latency. Long chains (4+ hops) hurt performance and can cause Search Engine Optimization (SEO) issues; aim for a single redirect.

What is Cache-Control and how does it affect performance?

Cache-Control tells browsers and Content Delivery Networks (CDNs) how long to cache a response. max-age=86400 caches for 24 hours; no-store prevents caching entirely; must-revalidate requires a check with the server before serving a stale copy. Setting appropriate cache headers is one of the most impactful performance improvements for static assets.