diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 28dc45139a..c7f3e95617 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -135,7 +135,7 @@ module ActionController #:nodoc: private def caching_allowed - !request.post? && response.headers['Status'] && response.headers['Status'].to_i < 400 + request.get? && response.headers['Status'].to_i == 200 end end |