Skip to content

Instantly share code, notes, and snippets.

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 jacobloveless/e4e6b8fd51645a9a4c18164bde808873 to your computer and use it in GitHub Desktop.
Save jacobloveless/e4e6b8fd51645a9a4c18164bde808873 to your computer and use it in GitHub Desktop.
Let's get Shopify x-cache header and TTFB info
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' 'https://www.allbirds.com/' -H 'authority: www.allbirds.com' -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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment