title: Laravel response Cache-Control headers always containing 'no-cache'
body: <p>For some reason Laravel seems to be manipulating the response headers 'Cache-Control' on the very last moment. I want to make browser caching possible.</p>
  
  <pre><code>class TestController extends Controller
  {
  
      public function getTest()
      {
          $response = new \Illuminate\Http\Response('test', 200, array(
              'Cache-Control' =&gt; 'max-age='.(config('imagecache.lifetime')*60).', public',
              'Content-Length' =&gt; strlen('test'),
          ));
  
          $response-&gt;setLastModified(new \DateTime('now'));
          $response-&gt;setExpires(\Carbon\Carbon::now()-&gt;addMinutes(config('imagecache.lifetime')));
  
          return $response;
       }
  }
  </code></pre>
  
  <p>Even when I use a 'after-middleware' and die and dump the response, I still get this, what seems to be right to me.</p>
  
  <pre><code>Response {#625 ▼
    +original: "test"
    +exception: null
    +headers: ResponseHeaderBag {#626 ▼
      #computedCacheControl: array:2 [▼
        "max-age" =&gt; "2592000"
        "public" =&gt; true
      ]
      #cookies: []
      #headerNames: array:5 [▶]
      #headers: array:5 [▼
        "cache-control" =&gt; array:1 [▼
          0 =&gt; "max-age=2592000, public"
        ]
        "content-length" =&gt; array:1 [▼
          0 =&gt; 4
        ]
        "date" =&gt; array:1 [▶]
        "last-modified" =&gt; array:1 [▼
          0 =&gt; "Sun, 16 Aug 2015 15:42:08 GMT"
        ]
        "expires" =&gt; array:1 [▶]
      ]
      #cacheControl: array:2 [▼
        "max-age" =&gt; "2592000"
        "public" =&gt; true
      ]
    }
    #content: "test"
    #version: "1.0"
    #statusCode: 200
    #statusText: "OK"
    #charset: null
  }
  </code></pre>
  
  <p>The method $response->isCacheable() als returns true. But when I receive the response, Firebug shows the following:</p>
  
  <pre><code>Cache-Control   
  no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  Connection  
  Keep-Alive
  Content-Type    
  text/html
  Date    
  Sun, 16 Aug 2015 15:42:08 GMT
  Expires 
  Thu, 19 Nov 1981 08:52:00 GMT
  Keep-Alive  
  timeout=5, max=98
  Pragma  
  no-cache
  Server  
  Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15
  Transfer-Encoding   
  chunked
  X-Powered-By    
  PHP/5.5.15
  </code></pre>
  
  <p>I use xampp, but on this same server when I just load an html-page (no Laravel/PHP), it does not send these Cache-Control headers.</p>
  
  <p>How can I achieve that the browser does not receive the Cache-Control headers "no-store, no-cache" when I set the last-modified and expires headers?</p>
  
  <p>Thanks!</p>