是否建议动态更新 google 元标记?如果通过 ajax 请求更新,google 是否会更新描述和标题等元标记?

Is it advisable to update google meta tags dynamically? Does google update meta tags like description and title if it is update via an ajax request?

我没有使用 Angular 或任何 js 框架。 仅在使用动态信息触发 ajax 请求后更新标题和描述。 我可以看到,在 2-3 周后,我的页面中很少有此动态内容,但并非所有页面在 google 索引中都有更新的动态元标记。 如何做到这一点,以便 google 为所有页面正确编制索引?

我正在通过以下方式进行更新:

之前:

<meta name=”description” content=”Description coming from server.”>

执行ajax请求后:

  $('meta[name=description]').attr('content','Dynamic Description after ajax success.');

实际上这是一种优化您的 SEO 排名的方法,但是您必须保留描述足够的时间并且不要更改太多,这样将 none-sense 更改并获得 none 有效结果,我认为 3 天到两周之间会很好...这取决于页面上的其他 SEO 内容、链接、标题等。

并且我没有得到ajax的部分,为什么你使用的语法或编程语言应该生效,我认为用ajax或直接用它来改变它没有问题PHP/ASP...