Fixed file download in produciton with s3 redirects