Technical pillar / check sitemap-lastmod-trust
Sitemap dates: can Google trust the last-modified dates in your sitemap?
We read the <lastmod> dates in the XML sitemap the audit already loaded and flag two patterns Google cannot trust: one date shared by every page, and dates after the day of the audit.
By Shimon Alex Carroll, Founder and CEO, Own The Climb · Last updated
This is how we check it
We read the last-modified dates in your XML sitemap and flag dates Google cannot trust.
- One date on every page (ten or more) usually means the sitemap writes the day it was built.
- A date after the day of the audit cannot be true.
- We read the sitemap the audit already loaded, so the check costs your site no extra request.
Our reasoning behind this
Google uses sitemap dates only when they are consistently accurate. Wrong dates stop helping Google find the pages you changed.
“Google uses the <lastmod> value if it's consistently and verifiably (for example by comparing to the last modification of the page) accurate.”
How we would fix it on your site
- Set each <lastmod> to the day the page's content, structured data or links last changed.
- If your sitemap tool can only write today's date, turn <lastmod> off.
Once your change is live, run the audit again and review the new findings alongside the pages it covered.
How to make the change on your platform
| Platform | What to do |
|---|---|
| WordPress | Yoast, Rank Math and the core sitemap use each post's modified date. A plugin or cache that rebuilds the sitemap with today's date on every page is the usual cause; check its sitemap settings. |
| Next.js | In app/sitemap.ts, set lastModified from each page's content date (your CMS or the file's last commit). A plain new Date() stamps every page with the build time. |
| Gatsby, Astro and other static builds | Sitemap plugins default to the build date on some setups. Map each page to its content's updated date, or turn lastmod off. |
What we want you to review
- A static site build that stamps every page with the build time.
- Some sitemap plugins write the current date on every page.
- Bumping every date after a template, footer or copyright change, which Google does not count as a significant update.
- Scheduling posts with a future date while the sitemap already lists them.
The exact rules our audit applies
We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.
The inputs we describe for this check
Every <url> entry of the XML sitemap the audit found, with its <lastmod> value when that value is a date. We count the dated addresses and how many different moments they name. Ten or more dated addresses that all name the same moment is one finding.
An address dated more than a day after the audit started is another (the day of slack covers sites in time zones ahead of UTC that write a date without a time). When the sitemap is larger than we download, we judge the complete entries we read and say so. A sitemap index is not measured yet: its page dates sit in the sitemaps it lists.
A text or feed sitemap has no <lastmod> field, so the check does not apply.
Our full reasoning
Google says: "Google uses the <lastmod> value if it's consistently and verifiably (for example by comparing to the last modification of the page) accurate", and that the value "should reflect the date and time of the last significant update to the page".
A sitemap that writes the same date on every page, usually the day the generator ran, tells Google that every page changed when most did not, and a date in the future cannot be true. Dates Google cannot trust stop helping it find the pages you did change, so new and updated pages wait longer to be crawled.
How we score what we find
Measured, once per audit. One shared date on ten or more dated addresses is a LOW technical finding with MEDIUM confidence, because a real sitewide edit on one day is possible. A date after the audit is a LOW finding with HIGH confidence.
A sitemap with varied dates passes. A sitemap with no dates passes with a note: Google does not require them. Fewer than ten dated addresses that share a date pass, because one day of edits is ordinary for a small site.
How sure we are of each result
HIGH when an address is dated after the audit, MEDIUM for a shared date alone. Dates written in different forms that name the same moment (2026-11-13 and 2026-11-13T00:00:00Z) count as the same date. Entries inside XML comments are ignored.
The evidence keeps the sitemap address, the counts and up to five future-dated addresses with their dates.
How to fix it, in full
Set each <lastmod> to the date the page's main content, structured data or links last changed. Most sitemap plugins and frameworks can take this from the page's modified date. If yours cannot, leave <lastmod> out until it can.
Then run the audit again.
The sources we rely on
- Google Search Central, Build and submit a sitemap (last updated 2026-07-08; accessed 2026-11-26)
Google Search Central
- Google Search Central Blog, Sitemaps ping endpoint is going away (2023-06-26; accessed 2026-11-26)
Google Search Central
- sitemaps.org, Sitemaps XML format (accessed 2026-11-26)
sitemaps.org
What we have changed on this page
- · First published. We read the sitemap the audit already loads; the check makes no extra request to your site.