Purge content
Da Wiki Neen.
Versione delle 11:13, 16 nov 2012, autore: Neen (Discussione | contributi)
Per rimuovere dei contenuti dall' HTTP Pull cache, usare la seguente richiesta :
POST /cdn_resources/:id/purge.json
POST /cdn_resources/:id/purge.xml
XML Request example
curl -i -X POST -u user:userpass http://cdn.neen.it/cdn_resources/:cdn_resource_id/purge.xml -d '<purge_paths>/home/123
JSON Request example
curl -i -X POST -u user:userpass
http://onapp.test/cdn_resources/:cdn_resource_id/purge.json -d
'{"purge_paths":"/home/123.jpeg"}' -H 'Accept:application/json' -H 'Content-
type:application/json'
Where:
purge_path – path to the content you want to remove