rails-no-cache 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionpack (3.2.7)
5
- activemodel (= 3.2.7)
6
- activesupport (= 3.2.7)
4
+ actionpack (3.2.6)
5
+ activemodel (= 3.2.6)
6
+ activesupport (= 3.2.6)
7
7
  builder (~> 3.0.0)
8
8
  erubis (~> 2.7.0)
9
9
  journey (~> 1.0.4)
@@ -11,10 +11,10 @@ GEM
11
11
  rack-cache (~> 1.2)
12
12
  rack-test (~> 0.6.1)
13
13
  sprockets (~> 2.1.3)
14
- activemodel (3.2.7)
15
- activesupport (= 3.2.7)
14
+ activemodel (3.2.6)
15
+ activesupport (= 3.2.6)
16
16
  builder (~> 3.0.0)
17
- activesupport (3.2.7)
17
+ activesupport (3.2.6)
18
18
  i18n (~> 0.6)
19
19
  multi_json (~> 1.0)
20
20
  builder (3.0.0)
@@ -9,6 +9,8 @@ module ActionController
9
9
  def render(*args) #:nodoc:
10
10
  render_original_no_cache(*args)
11
11
  self.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
12
+ self.headers["Pragma"] = "no-cache"
13
+ self.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
12
14
  response_body
13
15
  end
14
16
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails-no-cache}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Wharsojo}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-no-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: