Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 355 Bytes
require 'rubygems'
require 'sinatra'
set :public, Proc.new { File.join(root, "site") }
# This before filter ensures that your pages are only ever served
# once (per deploy) by Sinatra, and then by Varnish after that
before do
response.headers['Cache-Control'] = 'public, max-age=31557600' # 1 year
end
get '/' do
File.read('site/index.html')
end