title: How to force download for video (mp4) files on Nginx based on query parameter
body: <p>I already got this working for images, but for unknown reasons it doesn't seem to work for video (mp4). I added the extension mp4, but it gets ignored.</p>
  
  <p>My code;</p>
  
  <pre><code>location ~* ^/.+\.(?:gif|jpe?g|png|mp4)$ {
      autoindex off;
      if ($arg_dl = "1") {
          add_header Content-disposition "attachment; filename=$1";
      }
  }
  </code></pre>
  
  <p>TIA</p>