You can run this by doing the following:
- Log into https://prerender.io
- Open the developer console on the prerender site
- Copy the code in this gist and paste it into your console
- Hit enter!
Some notes:
- This script takes a while, Prerender is not very performant! So if you have a lot of cached URLs, be patient.
- I recommend opening the network tab of your developer console, and making sure that all the requests to
/cached-pages
andremove-cached-urls
are returning 200 OK responses. If they're returning any response with status400+
it's likely this script isn't working. - This may stop working at any time if Prerender changes their API or API usage policies ever.
Enjoy!