title: Google Update Created Bug - This file should be served over HTTPS. This download has been blocked
body: <p>Google Chrome started blocking downloads served via HTTP.</p>
  <p>This update broke my download links and shows the console error below.</p>
  <blockquote>
  <p>Mixed Content: The site at 'https://www.sellmyiphonemiami.com/' was
  loaded over a secure connection, but the file at
  'https://www.sellmyiphonemiami.com/order/print-shipping-label/731' was
  redirected through an insecure connection. This file should be served
  over HTTPS. This download has been blocked. See
  <a href="https://blog.chromium.org/2020/02/protecting-users-from-insecure.html" rel="nofollow noreferrer">https://blog.chromium.org/2020/02/protecting-users-from-insecure.html</a>
  for more details.</p>
  </blockquote>
  <p>My pdf downloads are served over HTTPS but I still get this error.</p>
  <p>Network console show 2 records:
  First one -</p>
  <blockquote>
  <p>Request URL:
  <a href="http://www.sellmyiphonemiami.com/order/print-shipping-label/732" rel="nofollow noreferrer">http://www.sellmyiphonemiami.com/order/print-shipping-label/732</a>
  Request Method: GET Status Code: 301 Moved Permanently (from disk
  cache) Remote Address: 52.10.157.2:80 Referrer Policy:
  strict-origin-when-cross-origin</p>
  </blockquote>
  <p>Second one -</p>
  <blockquote>
  <p>Request URL:
  <a href="https://www.sellmyiphonemiami.com/order/print-shipping-label/732" rel="nofollow noreferrer">https://www.sellmyiphonemiami.com/order/print-shipping-label/732</a>
  Request Method: GET Status Code: 200  Remote Address:
  52.43.218.108:443 Referrer Policy: strict-origin-when-cross-origin</p>
  </blockquote>
  <p>Heres is my controller:</p>
  <pre><code>$filename = sprintf('FedExShippingLable-%s.pdf', $o-&gt;getTrackingNumber());
      $fs = new Filesystem();
      $fs-&gt;dumpFile($filename, $o-&gt;getDocument());
      // Generate response
      $response = new Response();
      // Set headers
      $response-&gt;headers-&gt;set('Cache-Control', 'private');
      $response-&gt;headers-&gt;set('Content-type', mime_content_type($filename));
      $response-&gt;headers-&gt;set('Content-Disposition', 'attachment; filename=&quot;' . basename($filename) . '&quot;;');
      $response-&gt;headers-&gt;set('Content-length', filesize($filename));
      // Send headers before outputting anything
      $response-&gt;sendHeaders();
      $response-&gt;setContent(file_get_contents($filename));
      $fs-&gt;remove($filename);
      return $response;
  </code></pre>