Permalink
Browse files

Add cache-control header for varnish

  • Loading branch information...
1 parent eb0b648 commit 30250233af2551e5cb3b640c711d5c851583a987 @camerond committed Mar 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 camerondaigle.rb
View
@@ -16,6 +16,10 @@ def render(text)
end
end
+before do
+ response.headers['Cache-Control'] = 'public, max-age=604800' if production?
+end
+
get "/physical/?" do
haml :'/physical/index'
end

0 comments on commit 3025023

Please sign in to comment.