responders 0.5.1 → 0.5.2
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.
- data/CHANGELOG.rdoc +5 -1
- data/lib/responders/http_cache_responder.rb +2 -1
- data/lib/responders/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
|
@@ -33,7 +33,8 @@ module Responders
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def do_http_cache?
|
|
36
|
-
get? && @http_cache != false &&
|
|
36
|
+
get? && @http_cache != false && ActionController::Base.perform_caching &&
|
|
37
|
+
!new_record? && controller.response.last_modified.nil?
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
def new_record?
|
data/lib/responders/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: responders
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-02
|
|
12
|
+
date: 2010-03-02 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|