Content prefetch

Manually push new content to the CDN edge cache.

Endpoint

https://www.pushrcdn.com/api/v3/prefetch

Methods

POST

Parameters

FieldTypeDescription
zone_idintegerCDN zone serving the content
urlstringFull URL to the file that shall be prefetched, starting with http:// or https://. No trailing slash!

Headers 

FieldTypeDescription
APIKEYstringYour account API key

Examples

Prefetch the file "image.jpg" :

curl -d "zone_id=000" \ 
-d "url=https://c000z000.r-cdn.com/image/image.jpg"
-H "Accept: application/json" \
-H "APIKEY: 2d49e8f645d90818783c4e6c46f32ca0677ac401" \ 
-X POST "https://www.pushrcdn.com/api/v3/prefetch"  

Response

HTTPJSONDescription
200{"status":"success"}Prefetch started
401{"status":"error","description":"msg"}Wrong API key or zone ID

The file will be prefetched on the entire CDN edge network. Depending on it's size, this action could take a few minutes to complete.