1
0
Fork 0
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:
Patrick Toomey 2017-08-22 15:47:48 -06:00
parent 2b4c547ea8
commit 50777ca41b
No known key found for this signature in database
GPG key ID: 0096BD01AA78248E

View file

@ -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]