Skip to content

Instantly share code, notes, and snippets.

@wxianfeng
Created March 25, 2012 15:39
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 wxianfeng/2197500 to your computer and use it in GitHub Desktop.
Save wxianfeng/2197500 to your computer and use it in GitHub Desktop.
Rails 3 assets,Nginx配置
server 区内添加:
location ~ ^/assets/ {
root /web/projects/sqopen.com/public;
expires 1y;
add_header Cache-Control public;
add_header ETag "";
gzip_static on;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment