大网数据广告活动
网站运营与故障问答

Sitemap update lastmod and ping. what is the advantage?

· 52CE 我爱测

My website has 6milions pages of companies. ex: www.mywebsite.com/company-a I will generate one sitemap index file and put the url in robots.txt When the company A update one information in your page(example: address), I will cha…

问题原文

原帖链接 · oniram · CC BY-SA 3.0

My website has 6milions pages of companies. ex: www.mywebsite.com/company-a

I will generate one sitemap index file and put the url in robots.txt

When the company A update one information in your page(example: address), I will change the lastmod in sitemap file that contais the url www.mywebsite.com/company-a and I will change the lastmod for this sitemap in sitemap index file. After, I will send a ping for google to my sitemap index file url.

My question is: Is it really worth doing this? What would be the gain in relation to not doing this update and send ping?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Google's John Mueller says:

Sure, feel free to ping us when you have new or updated content!

Many CMS (including WordPress) also have a Sitemap generator either built-in or available as a plugin / extension. Those Sitemap generators will often also ping Google when you have changed or added content, making it easy for us to crawl and index that content as soon as possible once it's up. Google won't be upset if you ping too frequently (but doing so without changes on your site doesn't make sense either), so ping away!

Which makes it sound like generating a sitemap of new content and pinging Google could spur Googlebot into action. However, Google has said they don't usually use lastmod. Google ignores it because most webmasters don't keep it up to date. Google: We Mostly Ignore The LastMod Tag In XML Sitemaps.

I've seen pinging Google work nicely for fresh content. You can ping Googlebot to come fetch the page quickly after publishing it. That prevents scraper sites from copying quickly and getting Google to see it on their site first. I haven't seen much evidence that pinging Google gets Googlebot to come back and index updated content more quickly.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-03-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。