SourceForge uses an <iframe>
element with the src=""
attribute pointing to the file to download.
<iframe width="1" height="1" frameborder="0" src="https://stackoverflow.com/questions/156686/[File location]"></iframe>
(Side effect: no redirect, no JavaScript, original URL remains unchanged.)