Skip to content

Haaretz/update_amp_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purge amp cache

More info https://developers.google.com/amp/cache/update-cache

Generate a pair of RSA keys in the textual PEM format like this:

openssl genrsa 2048 > private-key.pem
openssl rsa -in private-key.pem -pubout >public-key.pem

Post the public key on the domain to be refreshed at the following location:

https://example.com/.well-known/amphtml/apikey.pub

Examples

Flask

curl -XPOST localhost:5000/update-cache -H "Content-Type: application/json" -d '{"url":"https://www.haaretz.com/amp/israel-news/podcasts/PODCAST-listen-when-will-saudi-arabia-also-make-peace-with-israel-1.10208557"}'

CLI

python update_amp_cache.py "https://www.haaretz.com/amp/israel-news/podcasts/PODCAST-listen-when-will-saudi-arabia-also-make-peace-with-israel-1.10208557" 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages