How do I update my amp cache?

How do I update my amp cache?

We got you, fam.

  1. Copy AMP Cache URL. https://cdn.ampproject.org/c/s/YourURLhere.com/path/to/stuff/
  2. Load your cached AMP page in a browser. It’s that simple.
  3. Visit again in new tab, browser, or device. The cache will be refreshed but the new AMP page will be shown to the next user, not to you.

How often does amp cache update?

In Google AMP documentation, it says “Each time a user accesses AMP content from the cache, the content is automatically updated, and the updated version is served to the next user”. Then what if a content of a AMP page is updated but no one visits the page for few days?

How do I flush Google AMP cache?

AMP Cache Clear Construct the cache clear URL in the specified format. Hit this URL every time you want to clear the post cache from Google CDN like on every post save event. That’s it. Cache will be cleared from Google CDN and fresh content will be shown to the next user who request for the content from Google.

How does AMP cache serve an altered url?

An AMP Cache serves documents on an altered URL, such as example-com.cdn.ampproject.org. The first dotted component of the original domain name in the example, example.com, becomes example-com. This document refers to this non-dotted string, example-com, as the “domain prefix”. See below for the algorithm that performs this transformation.

Where do I find the AMP cache hostname?

The AMP Cache hostname (cdn.ampproject.org) is excluded from the signature to allow submitting the same signed request to multiple AMP Cache operators. For signature verification, you must serve the public RSA key at a fixed location on the AMP document’s domain (to generate the key, see Generate the RSA key ).

How does Google AMP cache update the cache?

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. There it is. That means that when you load the AMP Cache URL directly, that forces the cache to update, even without the more “urgent” update ping method.

Can a cache origin be reversed in AMP?

If the “domain prefix” does not contain at least one ‘ – ’ (hyphen), the AMP Cache Origin cannot be reversed directly. Instead, if you know the set of possible publisher domains, you can create the set of AMP Cache Origins using the Domain Name algorithm further above in this document.