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 +6 -6
- data/lib/rails-no-cache.rb +2 -0
- data/rails-no-cache.gemspec +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionpack (3.2.
|
5
|
-
activemodel (= 3.2.
|
6
|
-
activesupport (= 3.2.
|
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.
|
15
|
-
activesupport (= 3.2.
|
14
|
+
activemodel (3.2.6)
|
15
|
+
activesupport (= 3.2.6)
|
16
16
|
builder (~> 3.0.0)
|
17
|
-
activesupport (3.2.
|
17
|
+
activesupport (3.2.6)
|
18
18
|
i18n (~> 0.6)
|
19
19
|
multi_json (~> 1.0)
|
20
20
|
builder (3.0.0)
|
data/lib/rails-no-cache.rb
CHANGED
@@ -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
|
data/rails-no-cache.gemspec
CHANGED