Purge content

Da Wiki Neen.
(Differenze fra le revisioni)
Riga 1: Riga 1:
Per rimuovere dei contenuti dall' HTTP Pull cache, usare la seguente richiesta : 
+
Per rimuovere dei contenuti dall' HTTP Pull cache, usare la seguente richiesta :   
  
POST &nbsp; &nbsp; &nbsp;/cdn_resources/:id/purge.json<br>POST &nbsp; &nbsp; &nbsp;/cdn_resources/:id/purge.xml
+
POST &nbsp; &nbsp; &nbsp;/cdn_resources/:id/purge.json<br>POST &nbsp; &nbsp; &nbsp;/cdn_resources/:id/purge.xml  
  
== XML Request example ==
+
== 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
+
<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>  
'<purge_paths>/home/123</source>
+
  
== JSON Request example<br> ==
+
== 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>
+
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]]
 
[[Category:CDN]]

Versione delle 11:14, 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

Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti