Downloadable S3 Assets

Today I needed to make an ebook (PDF) downloadable from a landing page and I didn't want to have my web server do any special serving of assets. The problem with serving assets from S3 is that the browser will try to render pdfs and images. After some research and experimentation I found a way to have S3 serve the asset without the browser rendering it.