gpt4 book ai didi

javascript - 这是使用 html 快照和 google fetch 的预期/想要的结果吗?搜索引擎优化/SPA

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:43:33 25 4
gpt4 key购买 nike

刚刚在 html-snapshot 节点模块的帮助下并遵循 htaccess 获得了 html 快照。

RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
RewriteRule ^(.*)$ /snapshots/%1? [NC,L]

这是一个 Angular 应用程序,但是这个问题对于 javascript spas/seo 是普遍的。环顾网络发现了大量文章,但没有完整的文章,这令人惊讶,因为 seo 非常重要。无论如何3个问题

使用 google fetch 确认正确的结果

  1. 快照页面的呈现:目的是不担心 css 或图像或可能的布局问题。例如,这里是一个 page of mine 的例子.链接和主要内容相互重叠。这是我们应该关心的事情吗?

  2. Orange warming redirected label: 此消息只是警告我们预期的重定向,而不是有问题需要解决? See image

  3. 提交到索引: 我们应该吗?我的第一个假设不是,只是确保网站已提交。

最佳答案

所以在这个link的帮助下已经提供了,我得到了足够的答案来回答我的问题。

  1. 建议不要使用转义片段约定

  2. 如果您希望使用它来优雅地降级,以适合其他搜索引擎,那么底线是不要使用快照,或者至少在这个约定中。根据谷歌

In general, websites shouldn't pre-render pages only for Google -- we expect that you might pre-render pages for performance benefits for users and that you would follow progressive enhancement guidelines. If you pre-render pages, make sure that the content served to Googlebot matches the user's experience, both how it looks and how it interacts. Serving Googlebot different content than a normal user would see is considered cloaking, and would be against our Webmaster Guidelines.

关于javascript - 这是使用 html 快照和 google fetch 的预期/想要的结果吗?搜索引擎优化/SPA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37292188/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com