reflexive 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/reflexive/application.rb +6 -0
- metadata +2 -2
@@ -52,6 +52,12 @@ module Reflexive
|
|
52
52
|
get("/reflexive/#{ path }", &block)
|
53
53
|
end
|
54
54
|
|
55
|
+
before do
|
56
|
+
if request.host == "reflexive-demo.heroku.com"
|
57
|
+
response["Cache-Control"] = "max-age=10800, public" # 3 hours
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
55
61
|
def e(message)
|
56
62
|
@message = message
|
57
63
|
erb :error
|