title: Intervention Image and cache Browser / Laravel 4
body: <p>i'm working with <a href="https://github.com/Intervention/image" rel="nofollow">Intervention Image</a> and his extension for the cache <a href="https://github.com/Intervention/imagecache" rel="nofollow">Intervention Image Cache</a> It work pretty well. </p>
  
  <p>What i'm trying to be able is to cache the image on the browser with the headers and Intervention.</p>
  
  <p>Wich is the best way to achieve that?</p>
  
  <p>let's say I have a route, it hooked an a method to my controller that handle the response for show the image like so:</p>
  
  <pre><code>public function showImage($name_image)
      {
          // how can set the headers for get image cache on browser?
          $img = Image::cache(function($image) use ($name_image) {
                 return $image-&gt;make('myFolderPathImage'."/".$name_image);
              });
  
          return Response::make($img, 200, array('Content-Type' =&gt; 'image/jpeg'));
      }
  </code></pre>