The default configuration of nginx will display the server header or version number to your web browser. For security purposes, I do not want to display this information. This can be easily achieved by adding or changing to the following in the http{} directive in your nginx configuration file as below: -
server_tokens off;
add_header 来设置cache-control
add_header Cache-Control “public, max-age=2592000″;
use WWW::Mechanize;
my $site = shift;
my $mech = WWW::Mechanize->new();
$mech->get($site);
print $mech->dump_headers();