mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Let middleware handle default cache behavior
This commit is contained in:
parent
2b4c547ea8
commit
50777ca41b
1 changed files with 2 additions and 1 deletions
|
@ -189,7 +189,8 @@ module ActionDispatch
|
|||
control.merge! cache_control
|
||||
|
||||
if control.empty?
|
||||
self._cache_control = DEFAULT_CACHE_CONTROL
|
||||
# Let middleware handle default behavior
|
||||
self._cache_control = nil
|
||||
elsif control[:no_cache]
|
||||
self._cache_control = NO_CACHE
|
||||
if control[:extras]
|
||||
|
|
Loading…
Reference in a new issue