LOG IN SIGN UP
Documentation

Single purges

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

Key-based purging of cache information allows you to include surrogate key headers with your content, which our caches strip out and index. You can then issue purge commands to selectively flush out anything with a specific surrogate key. For extra usefulness, items can have multiple keys that allow you to set up your own purging hierarchy.

To purge content tagged with one or more keys, 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 Keys field, type one or more keys (separate multiple keys with spaces).

  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