Skip to content

Instantly share code, notes, and snippets.

@rainly
Forked from IceskYsl/nginx config file
Created March 19, 2011 14:02
Show Gist options
  • Select an option

  • Save rainly/877500 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/877500 to your computer and use it in GitHub Desktop.
location ~* ^.+\.(jpg|jpeg|gif|png|bmp|ico|css|js|swf|lrc)$ {
access_log off;
expires 30d;
}
location ~* ^.+\.(mp3|wma|rar|zip|flv)$ {
expires 30d;
}
location ~* ^.+\.(htm|html|xml)$ {
expires 1h;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment