CMS and platforms

XML sitemaps: one identical lastmod on every URL loses the change signal

Abstract illustration on a navy background: a wide band of cream dots in a regular grid starts at the left edge, is cut by three vertical red-orange lines, then scatters toward the right into loose dots.

An XML sitemap tells search engines which URLs exist, and which ones have changed. Almost every CMS handles the first job. A good share of them fail the second, and fail it invisibly: the file is valid, Search Console reads it without error, and yet it no longer carries any information about what moved. The cause sits in a single field, lastmod, and in how it gets filled.

What Google actually does with lastmod

Google's position is written plainly in its documentation on building a sitemap: the lastmod value is used "if it's consistently and verifiably (for example by comparing to the last modification of the page) accurate." Google adds that the priority and changefreq fields are ignored. Of the format's three optional fields, one counts, and only when it tells the truth.

From the engine's side, the arithmetic runs like this. A robot has a crawl budget capped per site. When it rereads a sitemap, it compares the announced dates against the ones it has stored. A URL whose date has moved forward deserves another visit, while a URL whose date has not can wait. If every date moves forward together at each reading, the engine can no longer tell a genuinely updated page from an untouched one. It ends up distrusting the field. Google says so in its blog post of June 26, 2023: if lastmod says a page changed yesterday when it changed seven years ago, "eventually we're not going to believe you anymore when it comes to the last modified date of your pages." Bing likewise warns that it may disregard dates that are consistently set to the current date. The engine then falls back on its own crawl schedule.

The typical defect: the build date

Many static site generators, and a fair number of CMSs, write the date the site was regenerated into lastmod. On a site published daily, every URL then carries today's date, including three-year-old articles nobody has touched. The sitemap permanently announces that everything has changed.

Bing published this finding in February 2023, at the end of a study of websites with at least one URL indexed by Bing: when a sitemap's lastmod values are set incorrectly, the most common issue is that they are identical. After consulting webmasters, Bing found that this date was most often the date the sitemap was generated, not the date the content was modified. If, on top of that, the server sends no Last-Modified HTTP header or ETag on its pages, and does not answer robots' conditional requests, the engine has no other way of knowing, without downloading a page again, whether it has changed.

Abstract illustration on a navy background: a grid of identical dark dots fills almost the whole image, surrounded by about a dozen isolated light gray dots placed here and there along its edges.

Diagnosis in three checks

The check takes a few minutes, with nothing more than a terminal.

  1. Count the distinct lastmod values. Fetch the sitemap, extract the lastmod tags and count the unique values. A healthy sitemap on a site of several hundred pages has dozens. A single value, or a handful all dated the same day, is the defect.
  2. Compare lastmod against the page. Take an old URL from the sitemap, open the page, and compare the modification date shown in the article, or in its structured data, against the lastmod value. A gap of several months confirms that lastmod does not describe the page.
  3. Test the HTTP headers. Request a page with a HEAD request and see whether the server returns Last-Modified or ETag. Then send the same request with If-Modified-Since set to the date you received, or with If-None-Match and the ETag value if the server only sends that header. Google reads the ETag first when both headers are present. A server that answers 304 Not Modified knows how to say a page has not changed, while a server that returns 200 every time forces the robot to download everything again.

These three tests need no paid tool. They are among the checks to run before any discussion about indexing a media property.

Why it hurts a media property more than a brochure site

A twenty-page brochure site gets fully recrawled whatever happens. A media property that publishes several articles a week and corrects others lives on a reliable freshness signal: it is what lifts an updated article, and what spares the robot from spending its budget on frozen pages. When the signal breaks, Google and Bing stop relying on lastmod to schedule their visits. What changes, and what does not:

  • New articles, for their part, are still discovered as new: Google says it uses lastmod to schedule the crawling of URLs it has already discovered, and aims its crawl budget guide mainly at sites with more than a million pages, or more than 10,000 pages whose content changes daily.
  • Corrections to older articles wait for the robot's next ordinary visit, because nothing tells a corrected page apart from one a build simply regenerated. Bing warns that the crawling of updated content may then be delayed.

On a media property that also targets generative engines, the problem can be paid for twice: Bing writes that freshness signals influence how quickly an update is reflected in its search results and AI-generated answers, and that lastmod remains a key signal. Content revised to correct a figure can then stay served in its old version for longer. OpenAI, Anthropic and Perplexity do not say, in the documentation of their robots, whether they read sitemaps.

Abstract illustration on a teal background: a block of nine horizontal red-orange lines, most of them broken by a gap at a different point, the sixth of which is yellow and also interrupted near the middle.

The correction criterion

Fixing the defect means making lastmod carry the date of each page's last significant update, and nothing else. Google spells it out: "an update to the main content, the structured data, or links on the page is generally considered significant, however an update to the copyright date is not." A new title or a new featured image counts, since both belong to the main content and, when marked up, to the structured data. They change lastmod, but not the revision date on display or dateModified, which tell the reader the substance was revised. In practice:

EventShould lastmod change?
Text correction, added paragraph, updated figureYes
Change of title or featured imageYes, with no new revision date on display and no new dateModified
Change of the meta description onlyNo
Site regenerated with no change to the pageNo
Theme or template change applied to every pageNo, unless the visible content changes
Change to the page's links, "related articles" block includedYes
Secondary sidebar or footer text, copyright dateNo

The acceptance criterion is the same as the diagnosis: after the fix, the number of distinct lastmod values has to reflect the media property's real history, and two successive builds with no significant update have to produce two identical sitemaps. If the sitemap changes while no page has changed, the fix is not done.

The special case of a media property in a subdirectory

When a media property is hosted under a path of the main site, a blog served under /blog/ from another platform for instance, a second difficulty comes in: the robots.txt file that declares the sitemap is only read at the host root. A robots.txt placed in the subdirectory is never consulted, and the Sitemap lines it holds do not exist as far as search engines are concerned, as Google's page on creating a robots.txt file specifies. You then have to declare the media property's sitemap in the main site's robots.txt, or submit it directly in Search Console. On June 26, 2023, Google announced the end of the sitemap "ping" through a plain HTTP request, effective six months later: without one of these two declarations, Google does not read the media property's sitemap, and its pages are only discovered through the links that lead to them. Google states that it can usually discover most of a site whose pages are properly linked.

Both defects, uniform lastmod and undiscovered sitemap, get fixed once and for all at the publishing tool level. It is the kind of detail a CMS built for a media property has to settle by construction, because no editorial team will check it by hand at every publication. On the other freshness signals, the revision date on display and structured data, see the article "Freshness: date, revise, prove".

Abstract illustration on a navy background: a square of pale cyan dots in a grid, large on the left and smaller and smaller toward the right, ends against a thin vertical red-orange line along its right side.
  • : Title revised, Bing's 2023 finding cited, lastmod rules for links, title and image clarified.
Yann Léguillon

Written by

Yann Léguillon

President of Mazette, the company behind Joornal. He works with companies that are building their own media: editorial structure, visibility in search engines and in AI answers, production at scale.