Documentation

Learn how to build, publish, and launch your site with Adobe Experience Manager.

Resources

Setup push invalidation for Fastly

Push invalidation automatically purges content on the customer's production CDN (e.g. www.yourdomain.com) whenever content or code changes are made on AEM origins with the main branch in the host name (e.g. main--site--org.aem.live). Changes pushed to other origins do not trigger push invalidation.

Content is purged by URL and by cache tag/key.

Push invalidation is enabled by setting up the Fastly purge credentials in the CDN section of the configuration service.

curl --request POST \
  --url https://admin.hlx.page/config/{org}/sites/{site}/cdn.json \
  --header 'content-type: application/json' \
  --data '{
	"prod": {
		"host": "{production host}",
		"type": "fastly",
		"serviceId": "{serviceId}",
		"authToken": "{authToken}"
	}
}'

Configuration properties:

key value comment
host <Production Host> Host name of production site, e.g. www.yourdomain.com
type fastly
serviceId <Fastly Service ID> Service ID of production service
authToken <Fastly API Token>

To create a Fastly API Token,

You can validate the credentials with this tool.