Purge content
Da Wiki Neen.
(Differenze fra le revisioni)
(Creata pagina con ' bla blaCategory:CDN') |
|||
Riga 1: | Riga 1: | ||
− | | + | Per rimuovere dei contenuti dall' HTTP Pull cache, usare la seguente richiesta : |
+ | |||
+ | POST /cdn_resources/:id/purge.json<br>POST /cdn_resources/:id/purge.xml | ||
+ | |||
+ | == XML Request example == | ||
+ | |||
+ | <source lang="php">curl -i -X POST -u user:userpass http://cdn.neen.it/cdn_resources/:cdn_resource_id/purge.xml -d | ||
+ | '<purge_paths>/home/123</source> | ||
+ | |||
+ | == JSON Request example<br> == | ||
+ | |||
+ | curl -i -X POST -u user:userpass<br>http://onapp.test/cdn_resources/:cdn_resource_id/purge.json -d<br>'{"purge_paths":"/home/123.jpeg"}' -H 'Accept:application/json' -H 'Content-<br>type:application/json'<br>Where:<br>purge_path – path to the content you want to remove<br> | ||
+ | |||
+ | [[Category:CDN]] |
Versione delle 11:13, 16 nov 2012
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