update-ping has been deprecated and replaced with update-cache API
See original GitHub issueEg.
Canonical URL: http://www.exampledomain.com/
AMP URL: http://www.exampledomain.com/amp/
I made a php script that fetches URLs from my database in order to purge the whole domain cache.
Tried to “curl” the following addresses:
https://cdn.ampproject.org/update-ping/c/exampledomain.com/tags/tag/sometag/amp/
https://cdn.ampproject.org/update-ping/c/www.exampledomain.com/tags/tag/sometag/amp/
https://www-exampledomain-com.cdn.ampproject.org/update-ping/c/www.exampledomain.com/tags/tag/sometag/amp/
The response was 204 for any/all of them but the cache wasn’t updated. I checked my servers access logs but the requests from Google bots was far less than expected.
Please advise.
Kind regards
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Update AMP Content | Google AMP Cache
Use the update-cache request to update and remove content from the Google AMP Cache. ... A previous API called update-ping has been deprecated....
Read more >Update Google AMP Cache URLs: The Ultimate How-to Guide
Wondering how to update Google AMP Cache URLs? You can stop googling. It's easy, but sorta unnecessary? Here's why—and how to do it....
Read more >Hadoop DistributedCache is deprecated - Stack Overflow
I have no idea how to retrieve these cache files added using Job.addCacheFile(URI) . It does not work for me using the old...
Read more >Deprecated List (Apache Curator 5.5.0-SNAPSHOT API)
It uses a better algorithm. org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode. This has been replaced with the more general PersistentNode.
Read more >signac (core) package documentation
Installation · Install with conda · Install with pip ; Command Line Interface · CLI Overview · clone ; API Reference · The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@minamoto19 From your original report, it sounds like you saw some requests to your server for updates in response to using
update-ping
but an overall low volume? If so, that could be consistent with the rate limiting thatupdate-ping
has. It is not designed to accommodate a high volume of updates.Could you try implementing the
update-cache
protocol to see if that helps?Looks like you might be missing the
/s
fragment forupdate-ping
: https://developers.google.com/amp/cache/update-cache#update-ping-requestFYI
update-cache
is recommended instead andupdate-ping
will eventually be deprecated.