A staging site can render the same page as production and still give a search crawler different instructions. We checked this by preparing two copies of our static website from the same revision. The home page and one already-public Engineering article were byte-for-byte identical across the two local outputs. The staging preparation supplied a different crawl policy and a response header that told supporting search engines to leave the page out of their index. To understand what those observations prove, follow a request from the crawl policy to the page response.
Hold the checkout fixed
For the local comparison, we took one checkout and prepared it twice in empty output directories, selecting staging for one run and production for the other. Keeping the input revision fixed meant a page edit could not explain any difference between the outputs. Both preparations completed. We compared the generated home page and article bytes directly. The two pairs matched, including the same indexing and follow directives in the HTML. That comparison covered two rendered pages and left open what else might differ between the deployment payloads.
We then checked the files that govern how those pages are served. The staging preparation wrote a robots file asking crawlers to stay out of the entire site. It also added a response-header rule that supplied noindex and nofollow directives. The production preparation omitted that staging rule and kept the ordinary policy. The focused local suite passed three tests. It checked the staging crawl directives, selected production markup and routing, and rejection of five invalid input combinations. For example, the test paired a production project with the staging branch and expected the preparation to exit unsuccessfully. That case checked a separate decision about which deployment inputs the tool accepts. Those checks establish how the preparation behaves for the inputs under test, without observing an HTTP server or search crawler.
Check the actual response
A local configuration check leaves a question open about what the host serves. We made ordinary requests to the same two page paths on hosted staging and production. Both hosts returned HTTP 200 at both paths. Both sets of HTML responses contained the expected public page directive, and the sampled staging responses also carried the noindex header. The staging robots file contained the root disallow. The sampled production pages carried no equivalent response header, and the production robots file listed specific exclusions and a sitemap.
The hosted environments reported different revisions when we sampled them. We use the hosted requests to confirm which signals were observed on each environment at the time. The byte-for-byte comparison comes from the two controlled local outputs. This separation matters because a difference between hosted responses can come from the checkout, the deployment preparation, or the way a host serves the result. The local comparison held the checkout fixed. The hosted sample checked what a client actually received for two page paths from one location.
Follow the crawler's order of operations
Google's documentation explains why the two staging signals cannot be added up as proof that a URL stays out of search results. A crawler uses the robots file to decide whether it may request a page. If that file disallows fetching the page, the crawler may never see the noindex directive on the response. Google also documents that it can discover a URL from links elsewhere and may show that URL even if its crawler cannot fetch the page. We did not measure either outcome. The live requests tell us what the host sent when an ordinary client fetched the pages.
The HTTP 200 responses also show the difference between a crawler instruction and an access decision for those two sampled pages. Our client received the content even though the crawl policy and the response header addressed search engines. A configuration test can confirm the directives are generated. A live request can confirm they are served on a particular path. Neither observation follows a search engine through discovery, crawling and indexing. Keeping those steps distinct gives us a precise result from a narrow experiment: the rendered page can stay the same while the deployment changes what it tells a crawler, and the order in which the crawler encounters those signals matters.
← All engineering articles