包含<meta name ="fragment"content ="!">对于使用hashbang的页面有害吗?

Chr*_*oph 25 seo meta-tags google-crawlers hashbang

谷歌说这个元标记:

以下重要限制适用:

  1. 元标记可能仅出现在没有散列片段的页面中.
  2. 只要 "!" 可能会出现在内容字段中.
  3. 元标记必须出现在文档的头部.

资料来源:https://developers.google.com/webmasters/ajax-crawling/docs/specification?hl = fr-FR

I'm aware that it is only needed for pages that do not contain a hashbang but still should be served with a snapshot. But that is usually just the home page.

Let's say we have:

www.foo.com

www.foo.com/#!/jobs

The second one will be fetched as:

www.foo.com?_escaped_fragment_=/jobs

just because of the hashbang.

But the root page has no hashbang so it needs to have this special meta tag in the head.

<meta name="fragment" content="!">
Run Code Online (Sandbox Code Playgroud)

But since all my single page application uses the same <head> so far I wonder if it's actually harmful to keep the meta tag in for all the other pages that do contain a hashbang.

What will actually happen?

Ema*_*uge 7

它不只是一个选择加入,意味着在包含hashbangs的页面上使用它是多余的(无害)?据我所知,如果它在URI中检测到hashbang,则爬虫会自动查找_escaped_fragment_页面.只有在URI中没有hashbang时,您才可以建议爬网程序使用元标记附加_escaped_fragment_参数.这样,如果设置了参数,您可以提供不同的内容.这就是一些blogspot主题的工作方式(例如http://illegalcartoon.blogspot.de/).

我的问题是对的吗?

更新:

使用的AJAX抓取方案_escaped_fragment_已被Google弃用.以下是关于博客帖子的引用:

今天,只要您不阻止Googlebot抓取您的JavaScript或CSS文件,我们通常就能够像现代浏览器一样呈现和理解您的网页.

阅读完整文章:https://webmasters.googleblog.com/2015/10/deprecating-our-ajax-crawling-scheme.html

Tl;博士:停止使用这个!

  • 好的,这句话有点令人困惑.但作为概念验证,我可以提供以下链接:http://www.google.com/search?q = site:whomanuel .kodingen.com/wordpress这些是我的Backboned演示页面的爬行结果 - WordPress的主题.所有页面都包含hashbang和meta-tag.然而,他们完全索引.也许句子​​有点含糊不清,他们实际上想说,你可能不会使用带有元标记的公共哈希片段(www.domain.com#foo)!O_O (2认同)