Skip to content

HTTP Headers Reference

Complete guide to HTTP headers — learn what each header does, how to configure it, and why it matters for security and performance.

Security

Response

Caching

CORS

Request

Check your website's HTTP headers right now

Check headers →
SecurityHSTS, CSP, X-Frame-Options and others protect the site from XSS, clickjacking and MITM attacks.
PerformanceCache-Control, ETag, Vary control caching and reduce server load.
CORSAccess-Control-Allow-Origin defines which domains can make cross-origin requests.
DiagnosticsHeaders reveal server stack, software version and configuration — valuable for auditing.

Why teams trust us

45+
HTTP headers
Cache
caching analysis
<2s
result
HSTS
& security headers

How it works

1

Enter URL

2

HTTP response fetched

3

All headers parsed

HTTP Headers: server diagnostics and security

HTTP headers are metadata of every server response. They control security, caching, CORS and compression. Correct header configuration is critical for protection against attacks and optimal performance.

Security Headers

Instant check for HSTS, CSP, X-Content-Type-Options, Referrer-Policy and Permissions-Policy.

Cache Headers

Analysis of Cache-Control, Expires, ETag and Vary for diagnosing caching issues.

Server Fingerprint

Detection of Server, X-Powered-By and other headers revealing the technology stack.

Configuration Score

Overall security score for headers with specific recommendations for improvement.

Who uses this

Developers

HTTP response debugging

DevOps

cache & CDN verification

Security

security header audit

SEO

redirects & canonical

Common Mistakes

Missing HSTSWithout Strict-Transport-Security the browser may load the site over HTTP. Use max-age=31536000; includeSubDomains.
Server version disclosureThe header Server: Apache/2.4.51 helps attackers find vulnerable versions. Hide version in config.
Overly broad CORSAccess-Control-Allow-Origin: * is acceptable only for public APIs. For authenticated resources — use a whitelist.
Missing X-Frame-OptionsWithout this header, a site can be embedded in an iframe by an attacker for clickjacking attacks.

Best Practices

Implement the minimum security header setHSTS, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, Referrer-Policy: strict-origin-when-cross-origin.
Configure Cache-Control for static assetsCSS, JS, images: max-age=31536000, immutable. HTML: no-cache or short max-age.
Check headers after every deployUpdating nginx/Apache config can reset security headers. Include a header check in your CI/CD pipeline.
Use CSP in report-only mode firstContent-Security-Policy-Report-Only lets you debug policy without blocking legitimate resources.

Get more with a free account

HTTP header check history and API access for automation.

Sign up free

Complete HTTP Headers Reference for Developers

HTTP headers are key-value pairs sent with every request and response. They control caching behaviour, security policies, content negotiation, authentication, and redirects. Security headers — Content-Security-Policy, Strict-Transport-Security, X-Frame-Options — protect users from XSS, clickjacking, and protocol downgrade attacks. Caching headers such as Cache-Control and ETag reduce bandwidth and improve page load performance. This reference covers all standard and commonly used HTTP headers with their syntax and recommended values.

Frequently Asked Questions

What are HTTP headers?

HTTP headers are metadata sent with every request and response. They control caching, security, content type, CORS, authentication, and other aspects of HTTP communication.

What categories of HTTP headers exist?

Main categories: security headers (CSP, HSTS, X-Frame-Options), caching (Cache-Control, ETag), CORS (Access-Control-*), response (Content-Type, Content-Length), request (Accept, User-Agent, Authorization).

Which security headers are mandatory?

Minimum set: Strict-Transport-Security (HSTS), X-Content-Type-Options: nosniff, X-Frame-Options. Recommended: Content-Security-Policy, Permissions-Policy, Referrer-Policy. Check your headers with our HTTP checker.

How does caching work through headers?

Cache-Control defines caching policy: max-age (lifetime), no-cache (check freshness), no-store (do not cache). ETag and Last-Modified allow the browser to check if a resource has changed without re-downloading it.

What are CORS headers?

CORS (Cross-Origin Resource Sharing) is a mechanism that allows web pages to request resources from other domains. Key headers: Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers.