是否可以强制刷新 google amp html 页面?
Is it possible to force google amp html pages to refresh?
我很确定我知道答案,但找不到确定的答案 yes/no。
有没有办法,例如api 调用以将页面存储在 google 的 amp 缓存中以强制它获取该页面的新副本?
社论想知道他们在 cms 中更新页面时 google 也会更新。
有两种处理方法:让Google自己做and/or自己做。如果你让 Google 这样做,它就是一个黑盒子——只有 Google 知道他们如何管理他们缓存的数据。如果您在自己的 CDN 中部署数据,那么 - 无需在那里用显而易见的答案来烦扰您。
回答您的具体问题:不,没有 API 强制在 Google CDN 中创建 AMP 页面的新副本。但是,如果您在 AMP 文档中使用 http://schema.org/dateModified
并保持您的站点地图是最新的,您将向 Google 爬虫提供准确刷新其 CDN 所需的数据。
另请参阅:Google AMP Purge CDN, When the Source Updated
是的,您可以轻松 force the Google AMP Cache to update your AMP page:
The most effective way to update the version of any AMP document stored in the Google AMP Cache is to access that document using the AMP Cache URL format. The Google AMP Cache automatically requests the latest version of the AMP document from its origin and serves the updated version to the next user.
例如刷新http://example.com/amp_document.html, simply navigate to https://cdn.ampproject.org/c/example.com/amp_document.html.
有一个名为 update-ping 的 API 正是用于此目的。当我们网站上的一个页面被发布、重新发布或取消发布时,我们称之为 API 传递它需要的页面信息。此时,我们要么将页面添加到缓存,更新缓存中的页面,要么从 Google AMP 缓存中完全删除页面。需要注意的是没有通配符。这是逐页完成的。我刚刚将 update-ping API 调用连接到我们的 CMS 发布功能中。现在,当发生任何类型的发布时,我们都会添加、更新或删除缓存 url。这确保缓存始终代表最新的更改,即使这意味着页面将消失。再见缓存。
希望对您有所帮助。
我很确定我知道答案,但找不到确定的答案 yes/no。
有没有办法,例如api 调用以将页面存储在 google 的 amp 缓存中以强制它获取该页面的新副本?
社论想知道他们在 cms 中更新页面时 google 也会更新。
有两种处理方法:让Google自己做and/or自己做。如果你让 Google 这样做,它就是一个黑盒子——只有 Google 知道他们如何管理他们缓存的数据。如果您在自己的 CDN 中部署数据,那么 - 无需在那里用显而易见的答案来烦扰您。
回答您的具体问题:不,没有 API 强制在 Google CDN 中创建 AMP 页面的新副本。但是,如果您在 AMP 文档中使用 http://schema.org/dateModified
并保持您的站点地图是最新的,您将向 Google 爬虫提供准确刷新其 CDN 所需的数据。
另请参阅:Google AMP Purge CDN, When the Source Updated
是的,您可以轻松 force the Google AMP Cache to update your AMP page:
The most effective way to update the version of any AMP document stored in the Google AMP Cache is to access that document using the AMP Cache URL format. The Google AMP Cache automatically requests the latest version of the AMP document from its origin and serves the updated version to the next user.
例如刷新http://example.com/amp_document.html, simply navigate to https://cdn.ampproject.org/c/example.com/amp_document.html.
有一个名为 update-ping 的 API 正是用于此目的。当我们网站上的一个页面被发布、重新发布或取消发布时,我们称之为 API 传递它需要的页面信息。此时,我们要么将页面添加到缓存,更新缓存中的页面,要么从 Google AMP 缓存中完全删除页面。需要注意的是没有通配符。这是逐页完成的。我刚刚将 update-ping API 调用连接到我们的 CMS 发布功能中。现在,当发生任何类型的发布时,我们都会添加、更新或删除缓存 url。这确保缓存始终代表最新的更改,即使这意味着页面将消失。再见缓存。
希望对您有所帮助。