/google-amp-update-cache

This script uses the update-cache request to update the contents of the Google AMP cache.

Primary LanguageShell

google-amp-update-cache

This script uses the update-cache request to update the contents of the Google AMP cache.

Docs

Before using this script, you need to generate the RSA key and place the public key on the server. https://developers.google.com/amp/cache/update-cache

Usage

bash google-amp-update-cache.sh '<url>'

Example

bash google-amp-update-cache.sh 'https://wwww.example.com/article'