When a link checker reports a problem that a browser cannot reproduce, compare HEAD and GET for the same public URL before changing indexing settings. Some tools use HEAD to avoid downloading a body; an application can route that method differently from an ordinary navigation. The discrepancy is useful evidence, but it does not establish which response the crawler received.
The acceptance question is whether HEAD supplies appropriate metadata for the representation GET would select. Separately, GET must return the intended public content. A clean HEAD result cannot prove the body contains a product explanation, and a broken HEAD handler does not by itself prove the GET resource is unavailable.
Use the conditional-response guide for validator behavior. Here the variable is the request method. Hold the other important request conditions steady so the comparison answers that question.
Use the actual HTTP contract
RFC 9110 section 9.3.2 defines HEAD as identical to GET except that the server must not send response content. It says the server should send the same header fields it would for GET, but may omit fields determined only while generating content. This matters when a dynamically generated length is absent from HEAD: an omission may be permitted rather than an automatic parity defect.
Do not compare a GET body length with zero bytes returned by HEAD and declare truncation. HEAD is supposed to be bodyless. If Content-Length appears on HEAD, it describes the corresponding selected representation under the HTTP rules, not the number of body bytes this HEAD transfer should contain.
Inspect status, Location, Content-Type, canonical Link headers, robots headers and validators in context. A redirect changes which resource you are comparing; record each hop rather than taking one method’s original URL and the other method’s final destination as equivalent observations.
Build a controlled method matrix
Choose a known public page and an authorized test environment if changes are needed. Record UTC time, deployment, requested URL, method, request headers, status, redirect hops and final response headers. Keep cookies, authentication, language and content negotiation comparable. A logged-in GET against an anonymous HEAD is a different access-context test.
Start with unconditional requests. Conditional headers can legitimately produce 304 and obscure the method comparison. Likewise, an existing browser cache or service worker can return a representation without exercising the same network path. A command-line capture and a browser observation may both be useful, but identify their collection methods.
Retain the raw headers and GET body separately. Redact tokens and private cookie values from any shared report. HEAD does not need a request body for this public-page test. Do not send unusual content to a production handler merely because a generic client allows it.
Work a fictional handler mismatch
A fictional page at /guides/connect should return public HTML. The application serves it through a GET-specific route, but a fallback returns 405 for HEAD. The invented evidence below identifies a method-dispatch defect without pretending to measure search results.
| Request | Observed result | Interpretation |
|---|---|---|
| GET, anonymous, unconditional | 200, text/html, intended guide body | Public GET works in this capture |
| HEAD, same URL and context | 405, Allow: GET | HEAD route does not supply the expected public metadata |
| HEAD after handler repair | 200, text/html, no response body | Method dispatch repaired for this fixture |
| GET after handler repair | 200, same approved guide body | Repair preserved GET content |
The owner corrects dispatch so HEAD uses the intended representation metadata without transferring the body. The release test must still fetch GET afterward. Returning 200 for every HEAD path would make the checker happier while introducing a different error: unknown resources would falsely appear available.
Add an unknown URL to the test set. Both methods should reflect the approved missing-resource behavior for that route. Also test one redirecting URL so method handling does not silently bypass the shared redirect layer.
Classify a difference before fixing it
Some differences are material: HEAD returns a login redirect while GET is public;HEAD omits a restrictive header that GET actually serves;HEAD and GET identify different canonical targets. Trace those values to their owning middleware or handler. The canonical signal investigation can help when declarations conflict.
Other differences can be legitimate. A server may omit a header whose value is expensive to compute without generating the body, within the RFC’s conditions. Different Date values on sequential requests are normal. Do not demand identical header bytes when the contract concerns equivalent metadata and dynamic fields have their own meaning.
Preserve a three-state decision for each field: required equivalent, documented permitted difference, or unresolved. A table that treats every absence as success hides gaps;one that treats every dynamic difference as failure creates noise. Ask the implementation owner to explain the field rather than guessing from a framework default.
Turn the diagnosis into regression cases
Keep four route classes: an ordinary public page, a known redirect, a missing route and a page with any intentional method-specific exception. Record expected status and relevant metadata for both methods. Assert that HEAD has no response content and that GET contains the approved resource identity.
For generated HTML, an exact GET byte hash may change with a harmless build identifier. Compare stable approved content markers and relevant metadata under the site’s real contract rather than assuming all HTML is immutable. If a deterministic fixture is available, byte comparison can provide stronger evidence for that fixture.
Run the same cases through the public delivery path after deployment. Middleware, CDNs and application handlers can each affect method handling. A local framework test establishes local behavior only;the completion record needs the actual layer observed.
Report what the comparison establishes
Close with the affected route class, the demonstrated method mismatch, the repaired handler or rule and fresh captures. State any permitted header differences explicitly. Use the missing-page response review for unresolved status-versus-body issues.
Do not convert this result into a claim that Google has fetched or indexed the page. The Google status-code documentation explains response processing, but a manual HEAD/GET comparison is not a provider activity log. It establishes your endpoint’s tested behavior.
The practical finish is a reliable metadata probe and a separately verified public GET resource. Keeping both checks prevents an audit tool’s preferred method from becoming the entire definition of whether a page works.
