Laravel response Cache-Control headers always containing 'no-cache'
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. class TestController extends Controller { public function getTest() { $response = new \Illuminate\Http\Response('test', 200, array( 'Cache-Control' => 'max-age='.(config('imagecache.lifetime')*60).', public', 'Content-Length' => strlen('test'), )); $response->setLastModified(new \DateTime('now')); $response->setExpires(\Carbon\Carbon::now()->addMinutes(config('imagecache.lifetime'))); return $response; } } Even when I use a 'after-middleware'