Created
January 17, 2011 23:16
-
-
Save pdeschen/783683 to your computer and use it in GitHub Desktop.
testing nginx caching behaviour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -F /var/log/nginx/blog.foo.bar-access.log& | |
curl --head http://blog.foo.bar:81 | |
"HEAD / HTTP/1.1" 200 0 "-" "-" "HIT" | |
HTTP/1.1 200 OK | |
Server: nginx/0.7.67 | |
Date: Mon, 17 Jan 2011 22:51:44 GMT | |
Content-Type: text/html; charset=UTF-8 | |
Connection: keep-alive | |
... | |
curl --head http://blog.foo.bar:81/wp-admin/ | |
"HEAD /wp-admin/ HTTP/1.1" 302 0 "-" "-" "-" | |
HTTP/1.1 302 Found | |
Server: nginx/0.7.67 | |
Date: Mon, 17 Jan 2011 22:48:40 GMT | |
Content-Type: text/html; charset=UTF-8 | |
Connection: keep-alive | |
Expires: Wed, 11 Jan 1984 05:00:00 GMT | |
Last-Modified: Mon, 17 Jan 2011 22:48:40 GMT | |
Cache-Control: no-cache, must-revalidate, max-age=0 | |
Pragma: no-cache | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment