title: Failed to load PDF using Response Class
body: <p>I am using Laravel 5.2, with Dompdf "barryvdh/laravel-dompdf": "^0.7.0". 
  At first step, I am creating a PDF file with HTML input and saving it in storage path, which works fine. Later I have a link which helps rendering this saved PDF file in browser using Response class. 
  The code snippet for that is shown below-</p>
  
  <pre><code>$filename = 'file.pdf';
  $path = storage_path($filename);
  return \Response::make(file_get_contents($path), 200, [
        'Content-Type' =&gt; 'application/pdf',
        'Content-Disposition' =&gt; 'inline; filename="'.$filename.'"'
  ]);
  </code></pre>
  
  <p>This works fine on my local machine, but throws error on pre-production and production server with alert message "Failed to load PDF".</p>
  
  <p>Please need your help in understanding what's going wrong. Or else, is there any workaround I can do to load PDF file in browser?</p>
  
  <p>Your help is much appreciated.</p>