Created
August 6, 2018 08:04
-
-
Save arpitr/30953aadfb8d7fdc2ad2feb6bc1ed55b to your computer and use it in GitHub Desktop.
Acquia Varnish Purge Single Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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