Articles in this section

Can I flush the Fastly cache myself?

 

There are several methods available for purging your Fastly CDN cache.

You may utilize the Fastly Command Line Interface (CLI) to purge your service by clearing all or specific objects. For further details, please refer to the following link: https://www.fastly.com/documentation/reference/cli/purge/

Furthermore, certain Content Management Systems (CMS) and frameworks are equipped with Content Delivery Network (CDN) integrations that automatically clear your objects following content modifications. 

If you require your Fastly credentials, they can be located within your production or staging environments as environment variables or in the `fastly_tokens.txt` file of your Dedicated Generation 2 environments. 

upsun ssh -p <PROJECT_ID> -e <ENVIRONMENT> "env | grep -i fastly"
upsun ssh -p <PROJECT_ID> -e <ENVIRONMENT> "cat /mnt/shared/fastly_tokens.txt"

 

You can also SSH into your service and run the following command if your Fastly variables match our defaults;

 

curl -i -X POST "https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge_all" -H "Fastly-Key: ${FASTLY_API_TOKEN}" -H "Accept: application/json"

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.