Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
Created March 7, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianlintner-wf/90daa38e265096c48cb90dba2dadb56b to your computer and use it in GitHub Desktop.
Save ianlintner-wf/90daa38e265096c48cb90dba2dadb56b to your computer and use it in GitHub Desktop.
Simple Varnish Test Via Curl
#$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