The part of a page you never see in view-source
Every response your server sends starts with a block of HTTP headers, and crawlers read that block before they read a single line of HTML. A noindex sent as a header, a wrong content-type, or a caching rule added by your CDN can change how a page is handled even when the HTML looks perfect. View source does not show any of it, and DevTools only shows it if you open the Network tab and click the right request.
This HTTP header checker shows the live HTTP headers for any URL. It makes one live request to the URL (a HEAD request first, then a GET if the server refuses HEAD or answers it oddly), follows any redirects, and lists every response header the final URL returns. It sorts them into security, SEO, caching and content groups, and checks six common security headers: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy. You see the status code, the redirect hops and the raw values, so you can copy them straight into a ticket.
Headers that change how search engines treat a URL
Only a handful of headers affect indexing directly. X-Robots-Tag carries the same directives as the robots meta tag (noindex, nofollow, nosnippet, unavailable_after and so on) and is the only way to send them on files with no HTML head, such as PDFs and images. Our X-Robots-Tag Checker breaks that one header down per crawler. Link can carry rel="canonical", which is how you canonicalize a PDF that is reachable at two addresses. Content-Type tells the crawler what the body is; HTML served as text/plain or application/octet-stream will not be treated as a web page.
Location is the target of a redirect, and Vary tells caches which request headers change the response. Google asks sites that serve different HTML to phones and desktops from one URL to send Vary: User-Agent, so caches do not hand the wrong version to the wrong visitor. Everything else in the list is useful context rather than a ranking input.
Security headers: what they protect and what they do not do
None of the six security headers is a Google ranking factor. HTTPS is the only security-related signal Google has confirmed, and it is a light one. The headers still matter because they protect your visitors and your brand. HSTS stops browsers from ever making an insecure http:// request to your domain after the first visit. CSP limits which scripts can run, which blunts cross-site scripting. X-Content-Type-Options: nosniff stops browsers guessing file types. X-Frame-Options (or CSP frame-ancestors) stops other sites framing yours for clickjacking. Referrer-Policy controls how much of your URL leaks to other sites, and Permissions-Policy switches off browser features you do not use.
If a header is missing, the report says so. For a deeper read of the two complex ones, use the HSTS Checker for max-age and preload eligibility and the CSP Analyzer for directive-by-directive weaknesses. Our guide to security headers and SEO covers the reasoning in more depth.
A healthy response, line by line
Here is what a well-configured HTML page typically returns. Your values will differ, but each line has a reason to be there: a declared charset, a deliberate cache lifetime, compression, a canonical, and the security set.
HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: public, max-age=300, stale-while-revalidate=60
content-encoding: br
vary: Accept-Encoding
link: <https://www.example.com/guide/>; rel="canonical"
strict-transport-security: max-age=63072000; includeSubDomains
content-security-policy: default-src 'self'; frame-ancestors 'self'
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
referrer-policy: strict-origin-when-cross-origin
permissions-policy: camera=(), microphone=(), geolocation=()Two things to notice. The Vary line lists only Accept-Encoding because this page sends the same HTML to every device. And the cache lifetime on HTML is short (five minutes here), while hashed CSS and JS files would normally get a year with immutable. The Cache-Control Analyzer grades those caching lines in detail.
Caching headers and crawling, without the myths
A common claim is that Cache-Control max-age tells Googlebot when to come back. It does not. Google decides recrawl timing from its own signals, such as how often the page has changed and how important it looks. What Google does support is conditional requests: if your server sends ETag or Last-Modified and correctly answers If-None-Match or If-Modified-Since with 304 Not Modified, Googlebot can skip re-downloading unchanged pages, which saves your server and crawl capacity on large sites.
Caching headers matter more for visitors and CDNs. A dangerous pattern is a page that sets a login cookie and also sends public, max-age=3600: a shared cache can store one person's logged-in page and serve it to the next visitor. If you see Set-Cookie and a long public lifetime on the same HTML response, look closely.
Content-Type and charset slip-ups
For HTML, the header should read text/html; charset=utf-8. Without a declared charset the browser and the crawler have to guess, and a wrong guess turns curly quotes and accented letters into garbage characters. XML sitemaps should come back as application/xml or text/xml, and robots.txt as text/plain. A sitemap served as text/html because of a catch-all rule is a classic reason Search Console cannot read it. Check those files here too, not just your pages.
Finding which layer set a header
Headers can be added or overwritten by your application, your web server, a reverse proxy, a CDN rule, an edge function, or a hosting platform, and they apply in order. When the report shows a value your developers say they never set, it is usually coming from a layer further out. Clues help: cf-ray means Cloudflare is in front, x-vercel-id means Vercel, x-amz-cf-id means CloudFront. Fix the header in the layer that emits it, then run the check again to confirm nothing downstream overwrote your change.
Sample more than the homepage. Check one URL per template (article, product, category), plus the sitemap, robots.txt and a PDF or image if you publish them. Different rules often apply to each, and that is where surprises like a stray noindex on a whole folder hide.
Adding the missing headers on your platform
Nginx
Add headers in the HTTPS server block. The always flag makes sure they are also sent on error pages. Reload with nginx -t followed by systemctl reload nginx.
# inside server { } for the HTTPS site
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
# keep PDFs out of the index without touching the files
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex" always;
}Apache
With mod_headers enabled, add lines such as Header always set X-Content-Type-Options "nosniff" to your virtual host or .htaccess. For PDFs, wrap Header set X-Robots-Tag "noindex" in a FilesMatch block for \.pdf$.
Cloudflare
Use Rules, then Transform Rules, then Modify Response Header to add or remove headers at the edge without touching the origin. This is also the first place to look when a header appears that your server never sent.
WordPress and Shopify
On WordPress, a security plugin or your host's control panel can add the security headers, or you can set them in the server config if you have access. Shopify sets its own headers and does not let you change most of them, so on Shopify focus on what you control: the HTML, redirects and the robots.txt.liquid template.
When to re-run the check
Headers change silently during deploys. A framework upgrade, a new middleware or a CDN edit can flip a directive without anyone reviewing the HTTP layer. Re-check a short list of key URLs after every release that touches hosting or routing, and after any CDN change. If the status code itself looks wrong, the HTTP Status Checker shows the first and final status side by side.