aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/cache.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-01-06 12:43:40 +1030
committerMatthew Draper <matthew@trebex.net>2016-01-12 11:37:42 +1030
commit272c5838dfed0473acc11a9f97d797180015b242 (patch)
tree965424fdf3c4c069a6736a37a2c5debef41c5cf1 /actionpack/lib/action_dispatch/http/cache.rb
parentddfd51f270a9d915c64e83f73390c8642de44e23 (diff)
downloadrails-272c5838dfed0473acc11a9f97d797180015b242.tar.gz
rails-272c5838dfed0473acc11a9f97d797180015b242.tar.bz2
rails-272c5838dfed0473acc11a9f97d797180015b242.zip
Commit before freezing the headers
This shouldn't generally come up: under a standard flow, we don't start sending until after the commit. But application code always finds a way.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/cache.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/cache.rb b/actionpack/lib/action_dispatch/http/cache.rb
index 30ade14c26..842dfa5827 100644
--- a/actionpack/lib/action_dispatch/http/cache.rb
+++ b/actionpack/lib/action_dispatch/http/cache.rb
@@ -91,7 +91,7 @@ module ActionDispatch
DATE = 'Date'.freeze
LAST_MODIFIED = "Last-Modified".freeze
- SPECIAL_KEYS = Set.new(%w[extras no-cache max-age public must-revalidate])
+ SPECIAL_KEYS = Set.new(%w[extras no-cache max-age public private must-revalidate])
def cache_control_segments
if cache_control = _cache_control