Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only perform http cache if AC::Base.perform_caching is true.

  • Loading branch information...
commit e35f9ce94ffcc266697739b21f580a6d515764dd 1 parent cc450f4
@josevalim josevalim authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/responders/http_cache_responder.rb
View
3  lib/responders/http_cache_responder.rb
@@ -33,7 +33,8 @@ def do_http_cache!
end
def do_http_cache?
- get? && @http_cache != false && !new_record? && controller.response.last_modified.nil?
+ get? && @http_cache != false && ActionController::Base.perform_caching &&
+ !new_record? && controller.response.last_modified.nil?
end
def new_record?

0 comments on commit e35f9ce

Please sign in to comment.
Something went wrong with that request. Please try again.