Skip to content

Instantly share code, notes, and snippets.

@arpitr
Created August 6, 2018 08:04
Show Gist options
  • Save arpitr/30953aadfb8d7fdc2ad2feb6bc1ed55b to your computer and use it in GitHub Desktop.
Save arpitr/30953aadfb8d7fdc2ad2feb6bc1ed55b to your computer and use it in GitHub Desktop.
Acquia Varnish Purge Single Page
# Check Varnish Header
# Use following if no CDN(cloudflare/cloudfront) is used.
curl -sLIXGET http://<domain>/page-to-purge
# Use following to by-pass CDN
curl -sLIXGET -H "Host: <domain>" http://<acquia server ip>/path-to-purge
# Example
curl -sLIXGET -H "Host: www.test.com" http://12.602.711.xxx/test-page
Clear Barnish Cache
curl -v -k -H "Host: <domain>" -H "X-Acquia-Purge: <sitename>" -X BAN http://<acquia server ip>/path-to-purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment