public
Created — forked from yrgoldteeth/heroku_static.rb

  • Download Gist
ndfine_resume.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.