Created
March 7, 2017 17:29
-
-
Save ianlintner-wf/90daa38e265096c48cb90dba2dadb56b to your computer and use it in GitHub Desktop.
Simple Varnish Test Via Curl
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
#$1 is url | |
#$2 is cookie file | |
curl -I -b $2 -c $2 $1 > /tmp/vtest | |
echo 'Varnish Enabled: ' | |
grep -i 'Via.?varnish' < /tmp/vtest | |
echo 'Varnish Hit: ' | |
grep -i 'X-Cache:.HIT' < /tmp/vtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment