Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no need to assign if we are gonna return

  • Loading branch information...
commit 1ee3593d65feacf88d2b9171dada85dbdeae65e5 1 parent 06dc884
@fxn fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/http/cache.rb
4 actionpack/lib/action_dispatch/http/cache.rb
@@ -113,10 +113,10 @@ def string_body?
DEFAULT_CACHE_CONTROL = "max-age=0, private, must-revalidate"
def set_conditional_cache_control!
- control = @cache_control
return if self["Cache-Control"].present?
+ control = @cache_control
if control.empty?
headers["Cache-Control"] = DEFAULT_CACHE_CONTROL
elsif @cache_control[:no_cache]
Please sign in to comment.
Something went wrong with that request. Please try again.