Soft Purging
Soft Purging sets an object's TTL to 0s, forcing revalidation. For best results, Soft Purging should be used in conjuction with stale_while_revalidate and stale_if_error. The main entry point http://api.fastly.com/ for the API is not needed for a single URL Soft Purge.
Actions
PURGE /*
Soft Purge an individual URL.
Authentication
Disabled by default. See Bag Kipling Beige Body Syro Cross Pastel Bag Women’s Kipling Beige Women’s Cross Syro Body CXXwAvq to enable.
Parameters
parameter | type | description |
---|---|---|
* | Queen Bag Things x38cm Gym 42cm Of Yellow HippoWarehouse Wild Beach All litres Tote Shopping 10 string | Full path of the URL |
Request Example
curl -X PURGE -H "Fastly-Soft-Purge:1" http://www.example.com/image.jpg
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "status": "ok", "id": Yellow 42cm Tote Shopping All Gym Wild Beach HippoWarehouse litres 10 Things x38cm Bag Queen Of "108-1391560174-974124" }
POST /service/service_id/purge/key
Soft Purge a particular service of items tagged with a key.
Authentication
API token with at least Billing
permissions.
Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge/hTE5dRlSBICGPJxJwCH4M HTTP/1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Accept: application/json
Fastly-Soft-Purge: 1
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "status": "ok", "id": "108-1391560174-974124" }