diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-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 e6849596db..a2259de46b 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -134,7 +134,7 @@ module ActionController #:nodoc: private def caching_allowed - !@request.post? + !@request.post? && @response.headers['Status'] && @response.headers['Status'].to_i < 400 end end |