In line with a current research by Bing, most web sites have XML sitemaps, with the “lastmod” tag being probably the most essential part of those sitemaps.
The “lastmod” tag signifies the final time the webpages linked by the sitemap have been modified and is utilized by serps to find out how typically to crawl a web site and which pages to index.
Nevertheless, the research additionally revealed {that a} vital variety of “lastmod” values in XML sitemaps have been set incorrectly, with probably the most prevalent concern being similar dates on all sitemaps.
Upon consulting with net admins, Microsoft found that the dates have been set to the date of sitemap technology quite than content material modification.
To deal with this concern, Bing is revamping its crawl scheduling stack to higher make the most of the data supplied by the “lastmod” tag in sitemaps.
This may enhance crawl effectivity by decreasing pointless crawling of unchanged content material and prioritizing just lately up to date content material.
The enhancements have already begun on a restricted scale and are anticipated to roll out by June totally.
Moreover, Microsoft has up to date sitemap.org for improved readability by including the next line:
“Note that the date must be set to the date the linked page was last modified, not when the sitemap is generated.”
How To Use The Lastmod Tag Accurately
To accurately set the “lastmod” tag in a sitemap, you need to embody it within the <url> tag for every web page within the sitemap.
The date must be in W3C Datetime format, with probably the most generally used codecs being YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD.
The date ought to mirror the final time the web page was modified and must be up to date repeatedly to make sure that serps perceive the relevance and frequency of updates.
Right here’s an instance code snippet:
<?xml model=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<url>
<loc>http://www.instance.com/</loc>
<lastmod>2023-01-23</lastmod>
</url>
Google’s Recommendation: Use Lastmod Tag After Important Adjustments Solely
Google’s crawlers additionally make the most of the “lastmod” tag, and the ideas on utilizing it by each main serps are comparable.
Google Search Advocate John Mueller recently discussed the lastmod tag within the January version of Google’s office-hours Q&A classes.
It’s value noting that Google recommends solely utilizing the “lastmod” tag for substantial modifications, which was not talked about in Microsoft’s weblog publish.
Altering the date within the lastmod tag after minor edits may be considered as an try to control search snippets.
In Abstract
Microsoft’s current research and efforts to enhance the utilization of the “lastmod” tag in sitemaps will lead to extra environment friendly and efficient webpage crawling.
Publishers are inspired to repeatedly replace their sitemaps and lastmod tags to make sure that their pages are accurately listed and simply accessible by serps.
Featured Picture: mundissima/Shutterstock
Supply: Microsoft