Automated technical SEO checks that catch indexing blocks and deploy regressions — seotto.com
A sitemap's job is to tell a crawler which URLs you consider important and current. The specification lets you list more than HTML: PDFs, Image sitemaps, Video sitemaps, even alternates for the same document. A lot of teams, reasonably, then ask: if the file is on our domain and we would like it found, should it be in the sitemap?
The other school of thought is stricter: the sitemap is a list of canonical HTML documents. Everything else is discovered from those pages, or it is not important enough to be a result of its own.
Let's argue about it.
The case for including PDFs, images and videos
Some of your best documents are not HTML. A datasheet, a white paper, a filing, a product manual, a course slide deck: those PDFs often are the page the user wants. If they are only linked from a buried resource library, or from a JavaScript viewer that a crawler may not execute, a sitemap is how they get discovered at all. Leaving them out of the sitemap does not make them "not content".
Image and video results are a different surface. A recipe site, a product catalogue, a documentation site with diagrams: image or video search is a real path to the page. An image sitemap (or image entries under a page URL) is one of the few hints you have, especially for images that are lazy-loaded or served from a CDN host.
A sitemap is a contract with yourself. If you only list HTML, the PDF you shipped last week can sit unlinked, or linked from a noindex page, and nobody will notice. If the file has to be in the sitemap to "exist", someone will notice when it is missing or stale.
Crawlers have a budget, and they are not omniscient. A large media library that is poorly linked will be crawled slowly, or not at all. Listing the URLs you care about is a way of saying "spend the budget here".
The case for HTML-only sitemaps
A sitemap entry is a request to be considered as a result. A 40-page PDF of an old price list, a 200-slide sales deck, a logo PNG, a hero image, an OG image, a font file someone stuffed in /media: those do not all belong in search. Once they are in the sitemap, you have asked. Getting them out of the index later is more work than not inviting them in.
Sitemaps have size and attention limits. 50,000 URLs or 50 MB per file, and a crawler that does not promise to read every URL you list. A catalogue of 80,000 product images can crowd out the 8,000 product pages, or push you into a sitemap-index maze you then fail to keep valid. If the HTML pages already reference the images correctly, you have already done the more important job.
PDFs are awkward canonicals. A PDF and an HTML summary of the same paper can compete. The PDF rarely has a <link rel="canonical"> you control as easily as a page does (you can set a Link header, and almost nobody does). Listing both without a plan is how the wrong one ranks. If the HTML is the document you want people to land on, the PDF should be a resource of that page, not a peer in the sitemap.
The signals on a file are thinner. Titles, descriptions, internal links, lastmod you actually trust: HTML pages have them. A generic scan-0042.pdf in a sitemap is a URL with a filename for a title. If you are not willing to name it and link it from a real page, you are probably not willing to have it compete in search either.
Where I've landed
I want the sitemap to be a list of URLs I am prepared to stand behind as results, in the format the user should land on.
- HTML pages are the default, and they have to be in the sitemap if I care about them. That is not the argument. The argument is what else is invited.
- A PDF goes in the sitemap if it is the document, not a print stylesheet of a page I already have. Manuals, papers, filings, official forms: yes, with a useful filename and a parent HTML page that links to them. "PDF of this article for printing": no. The HTML is enough; the file can be linked from it.
- Images and videos belong as extensions of a page, not as a dump of a bucket. If I use image or video sitemap entries, they hang off the URL of the page I want to rank, and they are the media that page is actually about. I do not sitemap a whole CDN prefix.
- If I cannot give a file a lastmod I trust and a reason it should be found, I do not list it. A yearly crawl of
/mediainto the sitemap is how you inherit every forgotten asset as a search project.
A sitemap is a list of invitations, not a directory listing of your object storage. seotto.com checks the crawler-facing files you ship — including whether a sitemap is valid, reachable, and pointing at URLs that still resolve — so a media dump or a stale PDF entry is a failed check after deploy, not a surprise in the coverage report.
The parts I'm still unsure about
- Product image search. For a large shop, I have heard both "image sitemap made a measurable difference" and "it made no difference once the product pages were linked and the images were in the HTML". I would instrument one category, not the whole catalogue.
- Hosted video. If the canonical watch page is yours but the file lives on a video host, a video sitemap can still make sense. If you are just embedding someone else's video, I would not invent a sitemap entry for it.
- Non-Google crawlers. Some specialised search engines rely on sitemaps more heavily than Google does. If that is a channel you actually have, the "HTML only" policy may be the wrong default for that sitemap, on a separate index file.
If you already have a sitemap that lists every object in a bucket, I would not empty it on a Friday. I would start by dropping the URLs that 404, the ones that are noindex or robots-disallowed, and the ones no HTML page links to. What remains is closer to a real list, and you can then argue about the rest.
Related reading
- How to fix 'Redirect error' in Google Search Console: chains, loops, HTTP↔HTTPS↔www, and the hop that never lands
- Case study (hypothetical): a faceted-navigation parameter reached the sitemap, and Google indexed 80,000 filter URLs instead of the category pages
- How to split a sitemap that's grown past 50,000 URLs (or 50 MB) and keep the sitemap index valid
- Image SEO: 7 things I'd do differently on the next big site (starting with hashed filenames)
What do you put in your sitemap today — HTML only, or every PDF and image you would like found? Have you ever seen a file you listed outrank the page you actually wanted?
