- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
刚刚在 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 确认正确的结果
快照页面的呈现:目的是不担心 css 或图像或可能的布局问题。例如,这里是一个 page of mine 的例子.链接和主要内容相互重叠。这是我们应该关心的事情吗?
Orange warming redirected label: 此消息只是警告我们预期的重定向,而不是有问题需要解决? See image
提交到索引: 我们应该吗?我的第一个假设不是,只是确保网站已提交。
最佳答案
所以在这个link的帮助下已经提供了,我得到了足够的答案来回答我的问题。
建议不要使用转义片段约定
如果您希望使用它来优雅地降级,以适合其他搜索引擎,那么底线是不要使用快照,或者至少在这个约定中。根据谷歌
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/
使用登录后,我想吐出用户名。 但是,当我尝试单击登录按钮时, 它给了我力量。 我看着logcat,但是什么也没显示。 这种编码是在说。 它将根据我在登录屏幕中输入的名称来烘烤用户名。 不会有任何密码。
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎是题外话,因为它缺乏足够的信息来诊断问题。 更详细地描述您的问题或include a min
我是一名优秀的程序员,十分优秀!