Permalink
Browse files

Removed max-stale from the setting the cache-headers in the response …

…as max-stale is a cache request header.
  • Loading branch information...
1 parent 92887ca commit 1adad4442b29da3585713cc365d732fd953f8fac @andhapp andhapp committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/conditional_get.rb
@@ -110,8 +110,8 @@ def stale?(record_or_options, additional_options = {})
#
# Examples:
# expires_in 20.minutes
+ # expires_in 3.hours, :public => true
# expires_in 3.hours, :public => true, :must_revalidate => true
- # expires_in 3.hours, 'max-stale' => 5.hours, :public => true
#
# This method will overwrite an existing Cache-Control header.
# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more possibilities.

0 comments on commit 1adad44

Please sign in to comment.