Skip to content

Instantly share code, notes, and snippets.

jacobloveless / gist:e4e6b8fd51645a9a4c18164bde808873
Created May 28, 2021 03:29
Let's get Shopify x-cache header and TTFB info
View gist:e4e6b8fd51645a9a4c18164bde808873
while true; do curl -I --silent --show-error --write-out 'lookup: %{time_namelookup}\nconnect: %{time_connect}\nappconnect: %{time_appconnect}\npretransfer: %{time_pretransfer}\nredirect: %{time_redirect}\nstarttransfer: %{time_starttransfer}\ntotal: %{time_total}\n' '' -H 'authority:' -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36' -H 'sec-fetch-user: ?1' -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'sec-fetch-site: same-origin' -H 'sec-fetch-mode: navigate' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9,bg;q=0.8' --compressed | grep 'x-cache\|total\|etag' ; DATE; sleep $[ ( $RANDOM % 10 ) + 1 ]s ; done >> allbirds.txt