Skip to content

Instantly share code, notes, and snippets.

@thiagofigueiro
Created November 5, 2014 17:01
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 thiagofigueiro/cd643745e96a18385eb8 to your computer and use it in GitHub Desktop.
Save thiagofigueiro/cd643745e96a18385eb8 to your computer and use it in GitHub Desktop.
[thiago@uluru-2 ~]$ date; dig +short beta.westfield.com; for i in `seq 1 10`; do echo; echo Try $i; time curl -sI 'http://api.westfield.io/api/deal/master/deals.json?centre=valleyfair' | egrep '^(X-Cache|X-Served)'; done; date; dig +short beta.westfield.com;
Wed 5 Nov 2014 09:00:08 PST
beta.westfield.com.global.prod.fastly.net.
global-ssl.fastly.net.
fallback.global-ssl.fastly.net.
199.27.79.185
199.27.79.184
Try 1
X-Served-By: cache-lax1425-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.092s
user 0m0.005s
sys 0m0.006s
Try 2
X-Served-By: cache-lax1427-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.204s
user 0m0.005s
sys 0m0.006s
Try 3
X-Served-By: cache-lax1421-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.248s
user 0m0.005s
sys 0m0.006s
Try 4
X-Served-By: cache-lax1427-LAX
X-Cache: HIT
X-Cache-Hits: 1
real 0m0.038s
user 0m0.005s
sys 0m0.005s
Try 5
X-Served-By: cache-lax1426-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.409s
user 0m0.004s
sys 0m0.004s
Try 6
X-Served-By: cache-lax1428-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.036s
user 0m0.005s
sys 0m0.005s
Try 7
X-Served-By: cache-lax1433-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m0.780s
user 0m0.005s
sys 0m0.005s
Try 8
X-Served-By: cache-lax1430-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.225s
user 0m0.005s
sys 0m0.006s
Try 9
X-Served-By: cache-lax1423-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.087s
user 0m0.005s
sys 0m0.005s
Try 10
X-Served-By: cache-lax1420-LAX
X-Cache: MISS
X-Cache-Hits: 0
real 0m1.167s
user 0m0.005s
sys 0m0.005s
Wed 5 Nov 2014 09:00:18 PST
beta.westfield.com.global.prod.fastly.net.
global-ssl.fastly.net.
fallback.global-ssl.fastly.net.
199.27.79.184
199.27.79.185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment