title: Force Download an Audio Stream
body: <p>I have an audio stream from an external server and am not able perform any serverside changes. It currently works pretty well but it's only able to stream the songs in an HTML5 audio element. I'd also like to implement a download feature, the problem is, a link doesn't download anything, it automatically streams the mp3. The HTML5 download attribute doesn't do anything.</p>
  
  <p>The complete Response Headers by the server:</p>
  
  <pre><code>Accept-Ranges:bytes
  Cache-Control:no-cache, no-store, must-revalidate
  Connection:close
  Content-Length:6991749
  Content-Type:audio/mpeg
  Date:Sun, 28 Apr 2013 19:40:49 GMT
  Expires:Sat, 26 Jul 1997 05:00:00 GMT
  Last-Modified:Thu, 10 Jan 2013 18:59:31 GMT
  Server:nginx/1.0.2
  </code></pre>
  
  <p>It should work completely in JavaScript, if possible without PHP proxy.</p>