Setup push invalidation for Fastly
Push invalidation automatically purges content on the customer's production CDN (e.g. www.yourdomain.com
), whenever an author publishes content changes.
Content is purged by url and by cache tag/key.
Push invalidation is enabled by adding specific properties to the project's configuration (an Excel workbook named .helix/config.xlsx
in Sharepoint or a Google Sheet named .helix/config
in Google Drive).
Configuration properties:
key | value | comment |
cdn.prod.host |
<Production Host> |
Host name of production site, e.g. www.yourdomain.com |
cdn.prod.type |
fastly |
|
cdn.prod.serviceId |
<Fastly Service ID> |
Service ID of production service |
cdn.prod.authToken |
<Fastly API Token> |
To create a Fastly API Token,
- go to Personal API Tokens,
- click on "Create Token",
- enter a name (e.g.
"Production Site Purge Token"
), - select "A specific service" and your production service from the drop-down list,
- check the "Purge select content (purge_select) — Purge by URL or surrogate key" check box,
- select "Never expire",
- click on "Create Token",
- copy the generated token value shown in the pop-up window.
You can validate the credentials with this tool.