When something breaks after a deploy or hosting migration — a suddenly slow store, a blocked API call in Chrome DevTools, or a login cookie dropped on redirect — reading the exact live HTTP response headers from outside your local network usually pinpoints the root cause in under ten seconds.
Four header groups to inspect on every production release
1. Status, protocol and server version leaks
Under RFC 9110, inspect the exact final status code alongside transport headers:
- HTTP version &
Alt-Svc: Modern sites serveHTTP/2over TLS and advertiseAlt-Svc: h3=":443"when HTTP/3 (QUIC) is available. Server,X-Powered-ByandX-Generator: Default Nginx, Apache, PHP and Express configurations often broadcast exact version strings (X-Powered-By: PHP/8.1.12,Server: Apache/2.4.52). Stripping version headers removes easy fingerprinting signals (server_tokens off;in Nginx,expose_php = Offinphp.ini,app.disable('x-powered-by')in Express).
2. Caching, CDN status and compression (RFC 9111)
Under RFC 9111, caching headers separate fast, resilient websites from overloaded origins:
Cache-Control: Distinguish between public cacheable documents (public, max-age=300, stale-while-revalidate=60), fingerprinted static assets (public, max-age=31536000, immutable) and private personalized/checkout routes (private, no-store).- CDN cache indicators: Read
CF-Cache-Status(Cloudflare),X-Cache(CloudFront/Fastly/Varnish),X-Vercel-Cache,X-LiteSpeed-Cache,X-FastCGI-CacheandAge. SeeingBYPASSorDYNAMICon public marketing pages or product listings almost always explains a high Time to First Byte (TTFB). Content-Encoding&Vary: Confirm HTML, CSS, JS and JSON returnbr(Brotli),zstdorgzipalongsideVary: Accept-Encodingso proxies never hand compressed bytes to incompatible clients.
3. CORS and cross-origin isolation headers
Per MDN’s CORS specification, misconfigured CORS headers either break legitimate frontend apps or expose private user data:
- Never combine wildcard origin with credentials:
Access-Control-Allow-Origin: *paired withAccess-Control-Allow-Credentials: trueis rejected by browsers and signals a broken CORS policy — reflect only an explicit allowlist of trusted origins when credentials are enabled. - Avoid blind origin reflection: Reflecting any arbitrary
Originheader back intoAccess-Control-Allow-OriginalongsideAccess-Control-Allow-Credentials: trueallows third-party sites to make authenticated cross-origin reads. - Cross-origin defense headers:
Cross-Origin-Opener-Policy: same-originandCross-Origin-Resource-Policy: same-originisolate browsing contexts and prevent unauthorized cross-site embedding.
4. Cookie security attributes (Set-Cookie)
Whenever a server sets session or auth cookies on HTTPS, verify three defensive flags defined in MDN’s Set-Cookie reference:
Secure: Prevents browsers from ever transmitting the cookie over unencryptedhttp://.HttpOnly: Blocks client-side JavaScript (document.cookie) from reading session tokens if an XSS bug occurs.SameSite=Lax(orStrict): Stops routine cross-site request forgery (CSRF) submissions.
Check it now. The HTTP response header, cache & CORS checker inspects live HTTP status, protocol and HTTP/3 Alt-Svc, Server and X-Powered-By version leaks, Cache-Control, CDN cache HIT/MISS, Brotli/gzip compression, CORS rules and Set-Cookie flags; the security headers checker reads a page’s HSTS, CSP, X-Content-Type-Options, frame protection, Referrer-Policy and Permissions-Policy. No account, and the address is not stored.
Common post-deploy HTTP header regressions
Even carefully reviewed releases introduce subtle header regressions when a new reverse proxy rule, WordPress plugin or CDN worker goes live:
- Accidental
Set-Cookieon public HTML: A single marketing or language-switcher plugin emittingSet-Cookieon anonymous GET requests makes Cloudflare, Varnish and Fastly bypass edge caching for every visitor, turning 35 ms edge hits into 900 ms origin hits. - Conflicting
Cache-Controldirectives: Sending bothmax-age=3600from Nginx andno-cache, must-revalidatefrom an upstream PHP or Node process leaves browsers and shared proxies obeying the strictest directive (no-cache) instead of caching. - Over-broad
Varyheaders: AddingVary: User-AgentorVary: Cookiefragments CDN cache keys across thousands of permutations, collapsing hit ratios even whenCache-Control: publiclooks healthy. KeepVaryminimal (Vary: Accept-Encoding, plusOriginonly on endpoints that reflect allowed CORS origins). - Missing
Access-Control-Max-Ageon API preflights: Without a preflight cache duration onOPTIONSresponses, every authenticated cross-originPOSTorPUTpays double round-trip latency before the real payload leaves the browser.
Copy-paste hardening snippets
Nginx (strip version leaks + Brotli/gzip + clean caching)
server_tokens off;
gzip on;
gzip_vary on;
gzip_types text/plain text/css application/json application/javascript application/xml image/svg+xml;
location /static/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}Quick CLI header check
curl -sSIL --http2 https://example.com/ | grep -iE '^(http/|server:|x-powered-by:|cache-control:|cf-cache-status:|x-cache:|content-encoding:|access-control-|set-cookie:|alt-svc:)'How Beamfar helps
Inspect any public URL right now without opening a terminal using the free, zero-storage HTTP response header, cache & CORS checker — it audits status, protocol, HTTP/3 Alt-Svc, server version leaks, Cache-Control, CDN cache status, compression, CORS headers and Set-Cookie security flags (without storing or printing cookie values). Pair it with the security headers checker for OWASP headers and the TTFB checker for full timing breakdowns. For continuous monitoring across client portfolios, Beamfar tracks uptime, response times, headers, TLS, DNS, SEO and external security from two European Union regions starting on a permanent 1-site Free plan.
Questions
Why does a page return HTTP 200 but still feel slow on every visit?
Check the Cache-Control, CF-Cache-Status, X-Cache and Age headers. If a WordPress cookie or Cache-Control: no-store forces the CDN into BYPASS or DYNAMIC mode on public pages, every visitor hits your origin PHP and database instead of an edge cache.
Is exposing Server: nginx or X-Powered-By: PHP a critical vulnerability?
By itself, a version banner is an information leak rather than a direct breach, but automated scanners use exact version strings to match known CVEs quickly. Turning off server_tokens in Nginx and expose_php in PHP is a clean, zero-downtime hardening step.
Why does my browser block a fetch() request even though the API answered HTTP 200?
Browser CORS checks inspect Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Allow-Credentials on the preflight OPTIONS and actual response. If the header is missing, mismatched, or combines * with credentials, the browser hides the response body from JavaScript.
Does inspecting Set-Cookie headers expose private session values?
No. A passive external check sends no user login credentials and inspects only cookie attribute flags (Secure, HttpOnly, SameSite) without storing or displaying raw cookie values.
Sources
Read on . Standards and vendor pages change; confirm the current text before you rely on it.
- IETF RFC 9110 — HTTP Semantics (www.rfc-editor.org)
- IETF RFC 9111 — HTTP Caching (www.rfc-editor.org)
- MDN Web Docs — Cross-Origin Resource Sharing (CORS) (developer.mozilla.org)
- MDN Web Docs — Set-Cookie security attributes (developer.mozilla.org)