LOG IN SIGN UP
Documentation

Single purges

  Last updated March 20, 2017

Fastly provides several levels of cache purging. You can purge something as small as a single URL via the "Purge URL" command or as large as all content under a service via the "Purge All" command. You can also selectively purge content via key-based purging using the "Purge Key" command. We also provide a purging feature called Soft Purge that allows you to mark content as outdated (stale) instead of permanently deleting it from Fastly's caches.

Purging via the user interface

To purge content using the Fastly web interface, choose one of the purging methods below.

Purging a URL

To purge a single URL, follow the steps below:

  1. Log in to the Fastly web interface and click the Configure link.
  2. From the service menu, select the appropriate service.
  3. From the Purge menu, select Purge URL. The Purge URL window appears.

    a purge by url

  4. From the Domain menu, select the domain on which your content resides. If the domain you select is a wildcard domain (e.g., *.example.com) the Subdomain field will appear.
  5. If the Subdomain field appears, type the subdomain to purge for the wildcard domain you've selected (e.g., www).
  6. In the Full URL path field, type the path to the content you'll be purging (e.g., /example.jpg). The Preview field displays the URL that will be purged.
  7. In the Password field, type your Fastly password.
  8. Click the Purge button.

Purging with a key

To purge content based on a surrogate key, follow the steps below:

  1. Log in to the Fastly web interface and click the Configure link.
  2. From the service menu, select the appropriate service.
  3. From the Purge menu, select Purge Key. The Purge Key window appears.

    a purge by url

  4. In the Key field, type a key. Only one key can be entered at a time. No tabs, spaces, or carriage returns are allowed.
  5. In the Password field, type your Fastly password.
  6. Click the Purge button.

Purging all content

To instantly purge all content under your service, follow the steps below:

  1. Log in to the Fastly web interface and click the Configure link.
  2. From the service menu, select the appropriate service.
  3. From the Purge menu, select Purge All. The Purge All window appears and displays the exact domain you'll be purging.

    a purge by url

  4. In the Password field, type your Fastly password.
  5. Click the Purge button.

Purging via API

The syntax for purging a service through the API can be found in the Purging section of the API documentation.


Back to Top