Skip to content

Instantly share code, notes, and snippets.

@mwhuss
Created December 14, 2009 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mwhuss/255725 to your computer and use it in GitHub Desktop.
Save mwhuss/255725 to your computer and use it in GitHub Desktop.
use Rack::Static, :urls => ["/stylesheets", "/images"], :root => "public"
run lambda { |env| [200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html', File::RDONLY)] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment