What is lastmod?
lastmod is an optional element in an XML sitemap entry that records when the page at that URL was last modified. It sits alongside the loc element, which holds the URL. Search engines can use the date to decide which pages have changed since their last crawl and should be recrawled first. On a site with thousands of pages, that helps updated content get refreshed in the index sooner instead of waiting its turn among unchanged pages.
Google's documentation states that it uses the lastmod value if it is consistently and verifiably accurate, for example by comparing it with the last modification it sees when it crawls the page. Bing has also said that accurate lastmod values are important for its crawling. In other words, lastmod is a trust signal: honest dates make it useful, and dishonest ones make it worthless for your whole site.
How does Google use lastmod?
Google discovers URLs from sitemaps and decides when to recrawl them. When lastmod is trustworthy, a newer date than Google's last crawl is a reason to recrawl that URL sooner. It is a scheduling hint, not a command: Google may still decide not to recrawl a page immediately, and lastmod has no effect on ranking. Google has explained that it evaluates trust per site, so if your dates turn out to be unreliable, it may ignore lastmod across your sitemaps.
Google retired the old sitemap ping endpoint, partly because accurate lastmod values in sitemaps it already reads made pings unnecessary. The current recommendation is simple: keep your sitemap up to date, set lastmod honestly, and let Google read the sitemap on its own schedule.
| Field | Purpose | Google's use |
|---|---|---|
| <loc> | The page URL | Required; used for discovery |
| <lastmod> | Last significant change | Used if consistently accurate |
| <changefreq> | Expected change frequency | Ignored |
| <priority> | Relative importance | Ignored |
What counts as a significant change?
Google describes significant changes as updates to the main content, the structured data or the links on a page. For an article, that means rewriting sections, adding new information or correcting facts. For a product page, it means changes to price, availability, specifications or images. For a category page, it means products added or removed. Changes that do not affect what the page is about or what it offers, such as a new copyright year, a rotated ad or an updated 'popular posts' widget, are not significant.
- Article: new sections, updated facts, corrected errors, refreshed examples.
- Product: price, stock, specifications, images or reviews changed.
- Category or listing: items added or removed.
- Any page: structured data or important internal links changed.
- Not significant: footer years, ads, widgets, counters or cosmetic CSS changes.
What format should lastmod use?
Use the W3C Datetime format. A date alone, such as 2026-11-22, is valid. A full timestamp with a timezone, such as 2026-11-22T09:30:00+00:00, is also valid and more precise, which helps on sites that update the same page more than once a day. Avoid local formats like 22/11/2026, dates in the future and empty lastmod elements, all of which are either invalid or misleading.
| Value | Valid? | Note |
|---|---|---|
| 2026-11-22 | Yes | Date only; fine for most sites |
| 2026-11-22T09:30:00+00:00 | Yes | Full timestamp with timezone |
| 2026-11-22T09:30Z | Yes | UTC shorthand |
| 22/11/2026 | No | Not W3C Datetime |
| A future date | Misleading | Undermines trust in your dates |
Why do fake lastmod dates backfire?
A common mistake is setting every URL's lastmod to the time the sitemap was generated, so the whole site appears to change every day. Some plugins and frameworks do this by default. Others deliberately bump dates in the hope of more frequent crawling. Google compares the dates with what it actually finds when it crawls. When most 'updated' pages turn out to be unchanged, it learns your dates are noise and stops using them, which removes a useful signal for the pages that really did change.
The same applies to changing the visible 'updated on' date on articles without changing the content. Google has warned against superficial date changes made only to look fresh. A page that claims to be updated but is not gains nothing and can lose trust.
How do you set lastmod on common platforms?
Most CMSs and frameworks can generate sitemaps with lastmod, but the default source of the date varies. WordPress SEO plugins generally use the post's modified date, which changes whenever the post is saved, including for trivial edits. That is usually acceptable, but avoid re-saving large numbers of posts for cosmetic reasons. Shopify and other hosted platforms set lastmod from the product or page update time. Static site generators and custom frameworks often use the file's modification time or the build time, which can reset every date on every deploy.
- Check what your sitemap generator uses as the lastmod source.
- If it uses build or generation time, switch to a content-modified field or the last commit date of the content file.
- Exclude template-only changes from updating the content date.
- Make visible 'last updated' dates and structured data dateModified use the same source.
- Regenerate the sitemap and compare a few dates with real edit history.
Should lastmod match the date shown on the page?
Ideally, yes. If an article shows 'Updated 22 November 2026', the sitemap lastmod and the dateModified in its structured data should agree. Consistent dates across the sitemap, the visible page and structured data make it easier for search engines to trust all three. Mismatches, such as a sitemap claiming yesterday while the page says last year, are a common sign of an automated lastmod that is not tied to content.
Does lastmod matter for small sites?
Less than for large ones. On a site with a few dozen pages, Google can recrawl everything regularly, and lastmod makes little difference. It becomes valuable on sites with thousands of pages, frequent updates or limited crawl capacity, such as news sites, e-commerce catalogues, marketplaces and large blogs. Even on small sites, though, accurate dates cost nothing and avoid the trust problem if the site grows.
You may also read
Internal Links for Faster Indexing: A Practical Guide for 2026How internal links help Google discover and index pages faster in 2026: link placement, click depth, anchor text, hub pages, orphan pages and a repeatable process.
Programmatic SEO Indexing in 2026: Getting Thousands of Pages IndexedWhy programmatic pages struggle to get indexed in 2026, how Google judges templated content, and a rollout plan for getting large page sets crawled and kept.
How do you request a recrawl after updating a page?
For a handful of important pages, update lastmod and use URL Inspection's Request indexing to ask Google to recrawl them. For many pages, rely on the sitemap: once Google reads it and sees newer lastmod values, it can prioritise those URLs. Resubmitting an unchanged sitemap does not help. Our guide on request indexing limits explains the daily quota for individual requests.
A worked example: an e-commerce catalogue
A retailer with 60,000 products notices that price changes take a week or more to show in Google's snippets. Its sitemap sets every product's lastmod to the time the sitemap is generated each night. Google appears to ignore the dates entirely.
The team changes the sitemap to use each product's last price, stock or content update, splits products into sitemaps by category, and stops regenerating unchanged files. Over the next few weeks, Google's crawl activity in Crawl stats shifts toward products whose dates changed, and updated prices start appearing within a day or two for most products.
How should large sites organise sitemaps around lastmod?
On large sites, how you split sitemaps affects how useful lastmod is. If a single sitemap file changes whenever any of its 50,000 URLs changes, Google has to download the whole file to find the few updates. Splitting by section or by content type keeps most files stable, so only the files with real changes need to be fetched. A sitemap index file can carry a lastmod for each child sitemap, which should reflect the latest change to any URL inside that file.
Some publishers add a dedicated sitemap of recently changed URLs, covering the last day or week, alongside the full sitemaps. News publishers use a Google News sitemap for articles from the last two days. Both approaches give search engines a small, fast-changing file to check frequently while the large files stay mostly unchanged.
| Approach | Benefit | Note |
|---|---|---|
| Split by section or type | Only changed files need fetching | Also improves reporting by section |
| Sitemap index with lastmod | Shows which child files changed | Index lastmod = latest child change |
| Recent-changes sitemap | Small file for frequent checks | Keep the full sitemaps too |
| News sitemap | Fresh articles for Google News | Articles from the last two days only |
How do you audit your lastmod values?
Pick a sample of 20 to 30 URLs from your sitemaps and compare each lastmod with the page's real edit history in your CMS or version control. If most dates match the last meaningful change, your setup is sound. If they all show the same recent date, the generator is using build time. If they are years old for pages you know were updated, the content date is not being saved. Then compare against on-page dates and structured data. Repeat the audit after CMS upgrades, theme changes and migrations, which often reset how dates are generated. Fixing the source of the dates once is far more effective than correcting individual entries, because the next build would overwrite any manual changes anyway. Document the rule for your team so future changes keep it.
- All dates identical and recent: the generator uses build or generation time.
- Dates older than known edits: content changes are not updating the date.
- Dates newer than any visible change: template or widget changes are bumping dates.
- Sitemap and page dates disagree: different sources feed each one.
What about lastmod for deleted or redirected pages?
Sitemaps should list only canonical, indexable URLs that return 200. When a page is deleted or redirected, remove it from the sitemap rather than updating its lastmod. Listing redirected or 404 URLs sends mixed signals and shows up as errors and warnings in Search Console. If a page moves, list the new URL with its own accurate lastmod and let the redirect handle the old one. Our guide on Page with redirect explains why redirected URLs show as not indexed.
Does Bing treat lastmod differently?
Bing has been even more explicit than Google about lastmod, describing accurate dates as a key signal for its crawler to find updated content and recommending that sites set them carefully. Bing also supports IndexNow, which notifies participating search engines of changes directly when you publish. Using accurate lastmod for all search engines and IndexNow for Bing and others is a common, low-effort combination. Our guide on IndexNow explains how to set it up.
What are the myths about lastmod?
- Myth: a newer lastmod improves rankings. It is a recrawl hint, not a ranking factor.
- Myth: setting every date to today gets more crawling. It teaches Google to ignore your dates.
- Myth: changefreq and priority help. Google ignores both.
- Myth: you must ping Google after updating. Google retired the sitemap ping; accurate lastmod is enough.
Where Blink Index fits with lastmod
Accurate lastmod is the right way to tell search engines about changes on your own site. Blink Index's free link checker helps you confirm updated pages are crawlable and indexable before you rely on lastmod, and the free index checker tracks whether they appear in Google and Bing. For pages you cannot put in your own sitemap, such as backlinks on other sites, Blink Index submissions help discovery at 1 credit per URL, without any promise of indexing.
- Tie lastmod to real content changes in your CMS or build process.
- Check updated pages with the free link checker.
- Track indexing with the free index checker.
See the FAQ and the pricing page for more about Blink Index.
Summary: dates Google can trust
lastmod tells search engines when a page changed significantly. Google uses it when your dates prove accurate and ignores it when they do not. Update it only for real changes to content, structured data or links, use W3C Datetime format, keep it consistent with on-page dates, and drop changefreq and priority. For fixing sitemaps that Google cannot read at all, see Sitemap couldn't fetch, and for the role of sitemaps alongside links, sitemaps, internal links and crawl budget.