Skip to content

Commit

Permalink
cache is about cahed, not non cached
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Jun 10, 2010
1 parent 886c889 commit ab3f29f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ def to_format
cached = CACHES.inject(false) do |cached, cache|
cached || cache.do_http_cache(self)
end
if ::ActionController::Base.perform_caching && cached.nil?
if ::ActionController::Base.perform_caching && !cached.nil?
set_public_cache_control!
head :not_modified if fresh = request.fresh?(controller.response)
fresh
Expand Down

0 comments on commit ab3f29f

Please sign in to comment.