reflexive 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/reflexive/application.rb +6 -0
  2. 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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Evgeniy Dolzhenko