Chr*_*oph 25 seo meta-tags google-crawlers hashbang
谷歌说这个元标记:
以下重要限制适用:
- 元标记可能仅出现在没有散列片段的页面中.
- 只要 "!" 可能会出现在内容字段中.
- 元标记必须出现在文档的头部.
资料来源: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?
它不只是一个选择加入,意味着在包含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
| 归档时间: |
|
| 查看次数: |
16148 次 |
| 最近记录: |