Skip to content

Instantly share code, notes, and snippets.

@caquino
Created April 13, 2018 12:34
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 caquino/7a82a740a2cdbc5a67607dcacd4cb126 to your computer and use it in GitHub Desktop.
Save caquino/7a82a740a2cdbc5a67607dcacd4cb126 to your computer and use it in GitHub Desktop.
root@host:~# curl -v http://localhost/data 2>&1 | grep X-Cache-Status
< X-Cache-Status: HIT
root@host:~# curl -X POST --data "test=1" -v http://localhost/data 2>&1 | grep X-Cache-Status
root@host:~# curl -v http://localhost/data 2>&1 | grep X-Cache-Status
< X-Cache-Status: MISS
root@host:~# curl -v http://localhost/data 2>&1 | grep X-Cache-Status
< X-Cache-Status: HIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment