instance method
caching_allowed
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.0.20 PrivateSignature
caching_allowed()
No documentation comment.
Source
# File actionpack/lib/action_controller/caching/pages.rb, line 160
def caching_allowed
request.get? && response.status.to_i == 200
end
Defined in actionpack/lib/action_controller/caching/pages.rb line 160
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Pages