Skip to main content
Sitemap lastmod: Which changes justify a new date?
Technical SEO

Sitemap lastmod: Which changes justify a new date?

A new build date is not a page update date. Learn when XML sitemap lastmod should change, how to support it with CMS evidence, and what it cannot promise about crawling.

Matthias RamahiMatthias Ramahi
8 min readNovember 24, 2026Legacy score: 95/100

A CMS saves a small copy edit, the site builds, and suddenly thousands of URLs carry the same new lastmod. The timestamp is valid XML. It may still describe the build rather than a change to each page.

The <lastmod> element in an XML sitemap is meant to identify when the individual URL was last significantly modified. Google says it may use the value when it is consistently and verifiably accurate. A new timestamp is useful only when you can explain what actually changed on that page. It promises neither a crawl by a particular time nor inclusion in the index. Google's sitemap building documentation treats the date as a hint about a page update, not a guaranteed search outcome. In a Search Central post about modification dates, Google also explains why repeatedly inaccurate values lose credibility.

This guide focuses on the modification date for individual URLs in a sitemap. It does not estimate a general crawl frequency or recommend artificial updates to make search engines visit.

What lastmod describes

The Sitemap Protocol defines lastmod as the date the linked page was last modified. A date without a time is allowed; if you include a time, use a valid W3C Datetime format. Include the time zone, for example 2026-11-02T14:30:00+01:00 or the equivalent UTC time 2026-11-02T13:30:00Z.

The relationship matters: the date belongs to the <loc> URL in the same <url> entry. It is not the sitemap file's creation date or the time a deployment finished. An article's publication date is not automatically its latest modification date either.

HTTP validators such as Last-Modified and ETag are separate. A server can use them to answer a conditional request with 304 Not Modified. Google documents those headers and sitemap lastmod as different hints with different jobs. An XML value does not replace a correct server response; an HTTP header does not automatically replace the date in the sitemap entry.

Sitemap dates also report page changes separately from IndexNow. See which search engines an IndexNow notification actually reaches.

What counts as a significant change

Google gives changes to main content, structured data and links as examples of significant updates. An automatically changing copyright year in the footer is explicitly not such a reason. The decision depends on the page type: a new section may matter on a guide, while changes to the entries in a directory may alter the page's main value. This judgment relates to content freshness, but it does not mean every page needs regular updates.

A short editorial policy makes the decision repeatable:

  • Usually significant: A section is substantially revised, an outdated procedure is corrected, a useful reader resource is added or removed, or structured data changes in substance.
  • Usually not significant: A spelling fix that does not change meaning, a CSS adjustment without a visible content change, a build that leaves the delivered page unchanged, an analytics configuration update, or a new footer year.
  • Depends on the page: Comments, stock status, opening hours or curated directory entries. Update the date only when that information is central to the page's purpose and the change matters to readers.

These are working categories, not a threshold published by Google. Its documentation does not say how many words or what percentage of a page must change. Define the content events that count for your site and record exceptions.

For example, a team corrects an outdated configuration step in a guide, adds an example and checks the related links. That may qualify as a significant change. The same day, a CSS build updates the navigation styling. That build alone does not justify a new sitemap date for every page.

Do not confuse a CMS timestamp with a page date

Many CMSs have an updated_at field that changes whenever a record is saved. That can include metadata, previews, internal notes or automated synchronization. If your sitemap generator copies this field directly, it can send inaccurate freshness signals.

First check how your platform sets updated_at. Compare a few records with their visible revision history and the HTML actually served. If saving without a content change refreshes the timestamp, that field alone is not a reliable source for lastmod.

A cleaner approach is to track a separate field such as last_significant_content_change. Update it only for a documented event, such as an accepted editorial revision or a meaningful change to markup and links. This prevents a background job or global template release from labeling every page as fresh.

Shared page components need a deliberate rule too. Improving the navigation changes the HTML on many URLs. Whether that is a significant change to each page cannot be decided from the shared component alone. What matters is whether it changes that page's main information or reader-relevant content.

Automatically aggregated pages are different. A category or directory page may change its main content when its entries change. If your system knows those entries, it can derive the overview page's modification date from relevant changes. An unrelated entry update should not move the date for every page by default.

Find a false timestamp in the generator

When almost every URL has the same timestamp, look for a shared time source first. Common causes include new Date() during XML generation, a build time used as a fallback, or a global updated_at value for the sitemap index.

Compare a small, deliberate sample:

  1. The value in the sitemap entry.
  2. The CMS revision history and the field used to generate the date.
  3. A diff of the delivered page or the underlying content data.
  4. The date when the significant change was editorially accepted.

Include pages whose content is known to be unchanged and at least one page with a real revision. If both receive the same new date, the derivation is probably too broad. Check whether the sitemap index has its own lastmod: there, the date describes the referenced sitemap file, not every URL listed inside it.

A small example makes the boundary concrete. Suppose a fictional deployment on November 3 changes only the footer. A guide whose main text was last revised on September 12 keeps its September date. If the main text is substantially revised on November 5, the URL gets the date of that actual content event. These dates are fictional and illustrate the rule only.

For sites with many templates, add a small regression check for these triggers. Pick one URL each from a standard article, a category and a frequently updated service page. In preview, try three events: a relevant text change, a technical change with no visible page effect, and a change to a shared template. Record whether each URL's sitemap date moves and why. The outcome should follow the editorial policy; the goal is not to impose a single rule on every page type.

This reveals a systematic coupling before it affects the whole sitemap. A useful generator can derive a lastmod change from an editorially accepted content revision. A global build timestamp is simpler, but answers the wrong question. If platform constraints prevent a separate field, at least document which records update the CMS field in use and which automated saves trigger it.

Drafts and scheduled changes need their own state. While a revision exists only in a CMS preview and is not publicly served, its editorial timestamp does not describe what a crawler can fetch from the public URL. A robust sitemap therefore ties the date to the version that is actually published. For a scheduled update, change the sitemap value when the revised page goes live, rather than when someone first saves the preview.

Verify the output and measure crawling separately

Fetch the published sitemap instead of checking only the generator configuration. Confirm that the XML parses, each URL is in the right entry and dates use a supported format. Then compare the value with the revision history and delivered page. A parser can catch format errors; checking whether a date is truthful requires evidence from the source.

Measure crawls separately from the timestamp. Server logs can show when a verified Googlebot fetched a particular URL. Search Console offers sitemap processing and URL inspection reports, but a successful sitemap fetch does not prove that every URL was crawled or indexed. Google's crawling documentation explicitly warns against treating a sitemap as a crawl guarantee.

An accurate lastmod can help Google align crawl planning with changes. Processing still depends on Google's systems and the page itself. If an important URL does not appear updated, also check the last Googlebot request, HTTP status, canonical, indexability and visible page content. Our guide to indexing separates crawling from indexing; advanced technical SEO gives more diagnostic context. For a broader inventory, you can use our SEO audit checklist.

For a broader check across XML sitemaps, status codes, canonicals and internal links, a technical site audit can structure the review. It cannot prove that Google processed or indexed the same URL. That requires search-engine evidence. The crawl budget definition is no reason to keep advancing sitemap dates: more frequent crawling is not a ranking promise.

Set a defensible lastmod policy

For each URL group, document which field records the last significant content change and which events update it. Avoid build timestamps and blanket updates. If you cannot derive a date with confidence, omit lastmod for that URL instead of publishing a precise-looking guess.

Regularly compare a sample with CMS history and an actual page diff. Measure crawling through logs or appropriate Search Console reports, not by counting changed XML values. That keeps the sitemap a traceable hint about page changes instead of a list of dates that are renewed on autopilot.

Build a keyword database you own

Import and organize keywords, audit technical issues with evidence, and export everything at any time.

Start Free
Matthias Ramahi

Matthias Ramahi

Founder, Crawl Foundry

SEOKeyword ResearchTechnical SEO

Matthias Ramahi is the founder of Crawl Foundry and leads the product, its data sources, and its editorial standards. Crawl Foundry is his central software and SEO project.

Prefer Crawl Foundry on Google

Add crawlfoundry.com as a preferred source in your Google account and our articles will appear higher up on Google. Optional, and you can undo it at any time.

Set as preferred source

You Might Also Like

Search this website

Find product information, FAQ and documentation with links to the original pages.