lib/reflexive/application.rb in reflexive-0.1.0 vs lib/reflexive/application.rb in reflexive-0.1.1

- old
+ new

@@ -50,9 +50,15 @@ def self.action(path, &block) get("/reflexive/#{ path }", &block) end + before do + if request.host == "reflexive-demo.heroku.com" + response["Cache-Control"] = "max-age=10800, public" # 3 hours + end + end + def e(message) @message = message erb :error end \ No newline at end of file