Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
Security measures
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Single purges

      Last updated April 24, 2018

    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. Optionally select the Soft purge checkbox to mark your content as outdated instead of deleting it from cache.
    8. Click the Purge button.

    Purging with keys

    To purge content with surrogate 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 Key field, type one or more surrogate keys. Use spaces to separate multiple keys.
    5. Optionally select the Soft purge checkbox to mark your content as outdated instead of deleting it from cache.
    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. 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

    Additional resources: