Skip to content

Commit 565d1e3

Browse files
committed
fix(cdn): use purge by key endpoint
1 parent ee7481b commit 565d1e3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/purge-cache.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ jobs:
2424
- name: Purge ${{ env.KEY }}
2525
run: |
2626
curl -fsS -X POST \
27-
"https://api.fastly.com/service/${{ secrets.FASTLY_SERVICE_ID }}/purge/${{ env.KEY }}" \
28-
-H "Fastly-Key: ${{ secrets.FASTLY_API_KEY }}"
27+
"https://api.fastly.com/service/${{ secrets.FASTLY_SERVICE_ID }}/purge" \
28+
-H "Fastly-Key: ${{ secrets.FASTLY_API_KEY }}" \
29+
-H "Surrogate-Key: ${{ env.KEY }}"

0 commit comments

Comments
 (0)