A PDF can have its own indexing directive in the HTTP response. Open the final file URL and inspect its headers. Checking only the product page or the first redirect can overlook what the file serves.
Follow the download link to the final file
Take one public download URL you manage, then open DevTools, Network. Reload the URL and inspect the responses. Record the final URL, status, content type and all X-Robots-Tag values on the final PDF response. A response may contain multiple entries or name a particular crawler.
If you use curl, this sends a GET, follows redirects, prints the response headers and reports the final URL and status. Replace the example URL with your own.
curl -sSL -D - -o /dev/null \
-w '\nFinal: %{url_effective} (%{http_code})\n' \
'https://example.com/fit-sheet.pdf'
Compare the redirect with the PDF response
Our local sample represents a kitchen-appliance shop’s downloadable fit sheet. The old address redirected to the actual PDF. A separate file served a directive directly.
| Response | What the sample returned | What to record |
|---|---|---|
/fit-sheet.pdf | 301 with X-Robots-Tag: noindex | The redirect response has the header. |
/files/fit-sheet.pdf | 200, application/pdf, no X-Robots-Tag | The final PDF does not serve the directive. |
/files/controlled.pdf | 200, application/pdf, X-Robots-Tag: noindex | This separate PDF serves the directive directly. |
When the final file has no directive, record the missing header there. A header on the earlier hop does not prove the target returns it. If the final response is an HTML error or login page, you have not measured the PDF. For a file intended to be public, verify its working download address first.
Check crawl access separately from the header
Record the product page separately. Its HTML and any page-level robots tag do not describe the PDF response. If you use a PDF-level noindex, Google has to fetch the PDF response to read the header. Check the rules for the final file path on its own host. A robots.txt disallow may stop Google from seeing the header.
See redirects and status codes for reading each hop, and the indexing and noindex guide for the scope of indexing controls.
Frequently asked questions
Does a PDF inherit noindex from the HTML page linking to it?
No. Check the PDF URL itself. An HTML meta tag applies to its own page.
Can robots.txt replace X-Robots-Tag on a PDF?
No. Robots.txt controls crawl access. Google must be able to fetch the response to read a noindex header.
Does seeing the header mean the PDF is already gone from Search?
No. The header test verifies the current response. Google needs to recrawl and process the response before search results can reflect it.

