title: Laravel remove header values from API response
body: <p>Laravel App Version 5.6 
  i wish to remove the value private from the Cache-Control Header which is presented in the API response</p>
  
  <p><a href="https://i.stack.imgur.com/w1ekN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w1ekN.png" alt="enter image description here"></a></p>
  
  <p>i have a middleware that is adding the "no-cache" and "no-store" values</p>
  
  <pre><code>    $response = $next($request);
      $response-&gt;headers-&gt;set('Cache-Control', 'no-cache, no-store');
      return $response;
  </code></pre>
  
  <p>is it possible to do it in the same Middleware or any other work around</p>
  
  <p>EDIT1 : 
  in PHP.ini i have left the value "session.cache_limiter" empty, made sure .htacess is not appending headers and changed my middleware to do the following </p>
  
  <pre><code>$response-&gt;headers-&gt;remove('Cache-Control');
  $response-&gt;headers-&gt;set('Cache-Control', 'no-cache, no-store');
  </code></pre>
  
  <p>still getting the private value in the header.</p>