improve s3 uploader for content type, encoding and cache control