Skip to content

Instantly share code, notes, and snippets.

@zeeshanlakhani
Forked from mwhuss/gist:255725
Created April 26, 2012 21:38
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 zeeshanlakhani/2503407 to your computer and use it in GitHub Desktop.
Save zeeshanlakhani/2503407 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