简体   繁体   English

我怎样才能使用放大器缓存?

[英]How can I use amp cache?

What is procedure to use AMP cache for my website? 什么是为我的网站使用AMP缓存的程序? How can I enable my website to be served from amp cache? 如何让我的网站从放大器缓存中提供? When the canonical url is used? 当使用规范网址时? If I want to serve the original page for desktop and amp page for mobile devices, how can I achieve that? 如果我想为移动设备的桌面和放大器页面提供原始页面,我该如何实现?

I assume your desktop version (canonical) of the page is available in Google search results, if not then you need to submit a sitemap or notify Google of the presence of your canonical pages. 我认为您的桌面版本(规范)可以在Google搜索结果中找到,如果没有,那么您需要提交站点地图或通知Google您的规范页面。

Then in your canonical pages you will need to provide a link to the AMPHTML version in the HTML head element, for example: 然后在规范页面中,您需要在HTML头元素中提供AMPHTML版本的链接,例如:

<head>
  <link rel="amphtml" href="...." />
  ...
</head>

Eventually the googlebot will see these headers and start indexing your AMP pages and providing them in Google search results for mobile devices only, but only if certain criteria are met, which I recommend you read the AMP documentation for further clarity. 最终,googlebot会看到这些标题并开始为您的AMP页面建立索引,并仅在移动设备的Google搜索结果中提供这些标题,但仅在符合某些条件的情况下,我建议您阅读AMP文档以进一步明确。

Also use the AMP validator and https://www.google.com/webmasters/tools/accelerated-mobile-pages for errors, warnings and indexing rate. 还可以使用AMP验证程序和https://www.google.com/webmasters/tools/accelerated-mobile-pages获取错误,警告和索引编制率。

Also, don't forget to put the canonical URL in your AMP page too. 另外,不要忘记将规范网址放在AMP页面中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM