title: cakephp download big file with header content-length missing
body: <p>I have following code to download file in CakePHP 3.6:</p>
  
  <pre><code>public function download($id){
     $movie = $this-&gt;Movies-&gt;get($id)-&gt;toArray();
     $myfile = new File($movie['path'] . $movie['filename']);
     return $this-&gt;response-&gt;withFile($myfile-&gt;path, ['download' =&gt; true]);
  }
  </code></pre>
  
  <p>In browser it has following headers:</p>
  
  <pre><code>accept-ranges:bytes
  cache-control:no-store, no-cache, must-revalidate
  content-disposition:attachment; filename="Film.avi"
  content-encoding: gzip
  content-transfer-encoding:binary
  content-type:video/x-msvideo
  date:Fri, 11 May 2018 15:43:47 GMT
  expires:Thu, 19 Nov 1981 08:52:00 GMT
  pragma:no-cache
  server:nginx
  strict-transport-security:max-age=15768000
  vary:Accept-Encoding
  X-Firefox-Spdy:h2
  </code></pre>
  
  <p>I need to see progress % when downloading, It means Content-length header is missing.  When I added to function :</p>
  
  <pre><code>$s = $myfile-&gt;size();
  $this-&gt;response-&gt;withFile($myfile-&gt;path, ['download']-&gt;true])-&gt;withHeader('Content-Length',$s);
  </code></pre>
  
  <p>Still no success. Can you help me please ? I missed whole day with this.
  Something with qzip. I found that it should be disabled but I dont know how...</p>