Permalink
Browse files

Set some long cache headers

  • Loading branch information...
1 parent f46145d commit 13aa167ec98d96b5ce2ad16e5d46fa35a7d2ee65 David Currin committed Oct 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 app.rb
View
4 app.rb
@@ -1,4 +1,8 @@
class Calavera < Sinatra::Base
+
+ before do
+ cache_control :public, :max_age => 14515200 # 6 months
+ end
get '/' do
@title = "Calavera Construction Co."

0 comments on commit 13aa167

Please sign in to comment.