API
Recache
You can use the recache API to cache a URL for the first time or to recache a URL that has been cached previously. This request needs to be in JSON format or else it won't work.
The recache API is great for keeping your costs down, letting you set your cache freshness to a high value by using the recache API to supplement pages that change more often.
URL
https://api.prerender.io/recache
Params
{ "prerenderToken": "YOUR_TOKEN", "url": "http://www.example.com/url/to/recache" }
Example
curl -H "Content-Type: application/json" -d '{"prerenderToken": "YOUR_TOKEN", "url": "http://www.example.com/"}' https://api.prerender.io/recache
Recaching Multiple URLs
The recache API can take up to 1,000 URLs per request. Make sure to change the parameter to "urls" if you want to add more than 1 url per request.
Params
{ "prerenderToken": "YOUR_TOKEN", "urls": ["http://www.example.com/url/to/recache", "http://www.example.com/url/to/recache2" }
Example
curl -H "Content-Type: application/json" -d '{"prerenderToken": "YOUR_TOKEN", "urls": ["http://www.example.com/url/to/recache", "http://www.example.com/url/to/recache2"}' https://api.prerender.io/recache