module ActionDispatch::Http::MimeNegotiation

def should_apply_vary_header?

def should_apply_vary_header?
  !params_readable? && use_accept_header && valid_accept_header
end