utopia 0.9.37 → 0.9.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,9 @@ class Rack::Response
9
9
  end
10
10
 
11
11
  def cache!(duration = 3600)
12
- self["Cache-Control"] = "public, max-age=#{duration}"
13
- self["Expires"] = (Time.now + duration).httpdate
12
+ unless (self["Cache-Control"] || "").match(/no-cache/)
13
+ self["Cache-Control"] = "public, max-age=#{duration}"
14
+ self["Expires"] = (Time.now + duration).httpdate
15
+ end
14
16
  end
15
17
  end
@@ -6,7 +6,7 @@ module Utopia
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 9
9
- TINY = 37
9
+ TINY = 38
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- hash: 113
4
+ hash: 119
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 37
10
- version: 0.9.37
9
+ - 38
10
+ version: 0.9.38
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samuel Williams