简体   繁体   English

AMP缓存未删除

[英]AMP Cache not getting removed

Issue : Most of my AMP URL has been crawled by Google and showing it perfectly.. But I have made significant changes in AMP template code including adding adsense ads and new menu structure. 问题:我的大多数AMP URL都已被Google抓取并完美显示。.但是我对AMP模板代码进行了重大更改,包括添加adsense广告和新的菜单结构。 Even after many days still Google AMP CDN showing old design and content. 即使经过许多天,Google AMP CDN仍然显示出旧的设计和内容。 I tried and tested few online tutorials but its not working with me. 我尝试并测试了一些在线教程,但是它对我不起作用。 How Can I remove all AMP cache of my website and store updated one on AMP CDN. 如何删除网站的所有AMP缓存并将更新的缓存存储在AMP CDN上。

Thanks. 谢谢。

You may check on this documentation with steps on how to update or remove content from the Google AMP Cache. 您可以查看本文档,并提供有关如何从Google AMP缓存中更新或删除内容的步骤。

The easiest way to update the version of any AMP document stored in the Google AMP Cache is to make a new request to access that document using the AMP Cache URL format . 更新存储在Google AMP Cache中的任何AMP文档的版本的最简单方法是使用AMP Cache URL格式发出访问该文档的新请求。 The Google AMP Cache automatically requests the latest version of the AMP document from its origin (provided the previous version of the document has been in the cache for longer than its caching headers allow) and serves the updated version to the next user. Google AMP缓存会自动从其来源请求AMP文档的最新版本(前提是该文档的先前版本在缓存中的保存时间超过其缓存标头允许的时间),并将更新的版本提供给下一个用户。

You need to use the update-ping mechanism to permanently remove content from the Google AMP Cache after the content has been removed from its origin. 将内容从其来源中删除后,您需要使用update-ping机制从Google AMP缓存中永久删除内容。 Cached content that no longer exists will eventually get removed from the cache; 不再存在的缓存内容最终将从缓存中删除; it's just faster to use update-ping . 使用update-ping更快。

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

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