Glossary

What is sitemap lastmod?

sitemap lastmod is the optional date, on a URL entry in an XML sitemap, that says when that URL’s content last changed. The sitemaps.org protocol defines it as a W3C datetime. It is a hint about freshness. It is not a request to be crawled, and changing the date without changing the page does not make the page new.

Copy-paste example

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://audacian.eu/glossary/sitemap-lastmod</loc>
    <lastmod>2026-11-17</lastmod>
  </url>
</urlset>

On audacian.eu, a page’s sitemap lastmod is the newest git commit date among the source files for that page. Shared chrome, the nav and the footer, is left out, because it changes often and says nothing about whether the page’s content changed. The sitemap lists indexable URLs only. Production deploys then POST that same list, plus the feed, to https://api.indexnow.org/indexnow. A 200 from IndexNow means the list was received. It does not mean the pages were recrawled, and we do not report the ping as a ranking result.

The protocol at sitemaps.org says a sitemap lists the URLs you want crawled, and that each URL can carry lastmod, changefreq and priority. lastmod is the date of last modification. The value should follow the W3C datetime format, a full date or a date with a time and a timezone, as in 2026-11-17 or 2026-11-17T00:00:00Z. A date in another shape is not the value the protocol defines. changefreq and priority are also optional hints. None of the three is an instruction a crawler must obey.

The date is only useful if it moves when the content moves. A sitemap that sets every URL to today’s date, every day, says nothing: a consumer that trusted it the first week will ignore it after that. Google’s helpful-content documentation names the habit directly. It asks whether you are changing the dates of pages to make them seem fresh when the content has not substantially changed, and it treats that as a warning sign, not as a technique. A lastmod that tracks real edits is the version of the field that can be believed.

What counts as a change is a decision you write down. A typo in the body is a change. A new paragraph is a change. A global footer link, a nav label, or a copyright year in the chrome is not a change to every page, even though the HTML bytes differ. If lastmod moves for all of those, it moves every day and means nothing. We leave shared chrome out of the date on purpose. The date of a page is the newest git commit among the files that hold that page’s content.

The sitemap should list the URLs you want indexed and no others. A noindex page in the sitemap contradicts the meta tag. A redirected URL in the sitemap asks for a crawl of an address you do not serve. lastmod on those URLs does not repair the contradiction. Our sitemap is built from the indexable routes only, so a page under the length floor, or a topic page with too few items, leaves the sitemap when it becomes noindex. Its lastmod leaves with it.

lastmod does not replace IndexNow, and IndexNow does not replace lastmod. The sitemap is the list. lastmod is the date on each row of that list. IndexNow is a separate notification, sent when a deploy publishes, that participating engines can fetch the URLs you name. A crawler can ignore both. We send IndexNow from the same URL list as the sitemap, including the feed, so the notification and the list do not diverge. We do not send noindex URLs.

How to test: open the sitemap and read one url entry. The loc should be the canonical URL. The lastmod should be a W3C date, and it should not be identical for every URL unless those pages really changed together. Edit one page, deploy, and check that this URL’s date moved and the others did not. Then check that a noindex URL is absent. Our build writes lastmod from git, per page, and the deploy pings IndexNow with that sitemap afterwards. The ping’s HTTP status means the list was received, not that any URL was recrawled.

If you want this done on your site, start with Technical SEO.

Check your site free

Tell us what you're launching.

Book a 20-minute intro call, or email a few lines about what you're launching. We'll reply with a rough plan and a price range, whether or not we end up working together.

We reply within one working day.