简体   繁体   English

在Google缓存中缓存无效的amp页面并打开缓存网址时会发生什么情况

[英]What happens when invalid amp page is cached in the google cache and open the cache url

let my page URL be www.xyz.com. 让我的页面网址为www.xyz.com。 when I cache this URL, Google generates a cached URL like https://www-xyz-com.cdn.ampproject.org/c/www.xyz.com . 当我缓存此URL时,Google会生成一个缓存的URL,例如https://www-xyz-com.cdn.ampproject.org/c/www.xyz.com

If the www.xyz.com is invalid amp page(ie, it has an amp validation error) and if I clicked on the cached URL ( https://www-xyz-com.cdn.ampproject.org/c/www.xyz.com ) it will redirect to the actual URL ( www.xyz.com ) instead of serving from the cache. 如果www.xyz.com是无效的放大器页面(即,它具有放大器验证错误),并且我单击了缓存的URL( https://www-xyz-com.cdn.ampproject.org/c/www。 xyz.com ),它将重定向到实际的URL( www.xyz.com ),而不是从缓存中投放。

In this case, since Google is unable to serve the page from the cache, do we get 404 errors or any other errors? 在这种情况下,由于Google无法从缓存中提供页面,我们会收到404错误还是其他错误? If yes, how do we monitor the errors? 如果是,我们如何监视错误?

There's a couple of guidelines when it comes to invalidating AMP cache URL's, the details can be found here . 有关使AMP缓存URL无效的准则有两个,可以在此处找到详细信息。 If your document was previously valid but is no longer valid, the AMP cache will continue to serve the most recent valid version unless you intervene. 如果您的文档先前有效,但不再有效,则除非您进行干预,否则AMP缓存将继续提供最新的有效版本。

To answer your second question can monitor AMP validation errors in the Google Search Console , there's a tab specifically for AMP that allows you to view errors that are occurring in production. 为了回答您的第二个问题,可以在Google Search Console中监视AMP验证错误,有一个专门用于AMP的标签,可让您查看生产中发生的错误。

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

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