WebmasterID logoWebmasterID
Crawl diagnostics

Sitemap lastmod accuracy

The lastmod element in a sitemap reports when a URL's content last changed. Google uses lastmod to prioritize recrawling only when the value is consistently accurate; if every URL shows the generation date or the homepage date, Google learns to distrust and ignore it. This page explains correct lastmod semantics, format, and the consequences of inaccuracy.

Verified against primary sources

What this means

The lastmod element records the date (and optionally time) a URL's content last meaningfully changed, in W3C datetime format (for example a full date, or a date with time and timezone). It is a per-URL freshness signal in the sitemap.

Google has stated it uses lastmod for scheduling recrawls, but only if it trusts the value. Trust comes from consistency: lastmod must correspond to real changes across your sitemap.

How Google uses it and when it is ignored

When lastmod is accurate and consistent, Google can use it to prioritize recrawling recently changed URLs. When it is unreliable, Google ignores it entirely.

Common ways to make it unreliable: stamping every URL with the sitemap generation timestamp, copying the homepage's lastmod to all URLs, or updating lastmod when nothing on the page actually changed (such as a template tweak with no content change). All of these destroy the field's value.

Getting it right

Derive lastmod from a real content-modified timestamp in your CMS or data store, not from the moment you generated the sitemap. Only bump it when the page's main content actually changes — not for unrelated boilerplate or analytics tweaks.

Keep the format valid and consistent. If you cannot reliably produce accurate lastmod values, it is better to omit the field than to fill it with misleading dates that lead Google to discount your sitemap's freshness signal.

How it appears in analytics and logs

An accurate lastmod helps Google decide which URLs to recrawl sooner. An inaccurate lastmod — the same date everywhere, or always today — gives no useful signal, so Google discounts the field. lastmod is a hint about freshness, not a command to recrawl.

Diagnostic use case

Set lastmod to reflect genuine content changes so Google can prioritize recrawling updated pages, and fix the inaccurate-lastmod patterns that make Google ignore the field.

What WebmasterID can help detect

WebmasterID shows when crawlers actually refetch URLs, which you can compare against your lastmod values to see whether updated pages are being recrawled and whether your freshness signals are being acted on.

Common mistakes

Privacy and accuracy notes

lastmod is a content-change timestamp, not visitor data. WebmasterID records crawler fetches and responses as bot events and stores no user information.

Frequently asked questions

Does Google use the lastmod value?
Yes, when it is consistently accurate — Google can use it to prioritize recrawling changed URLs. If lastmod is unreliable (all the same date, or always today), Google ignores it.
Should I update lastmod for any page change?
Only for meaningful changes to the page's main content. Updating it for unrelated template or boilerplate changes makes the signal noisy and untrustworthy, which leads Google to discount it.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.