私はRuby 1.8.7でRails 2.3.14を使用しています。S3 オブジェクトを取得するために認証済み URL を生成しており、最新の aws-sdk gem を使用しています。私はこの答えを見て、私のコードは同じです: AWS S3 Ruby url_for response headers (custom file name and file type)
これが私のコードです。これが生成する URL にアクセスすると、応答に content-disposition ヘッダーが設定されず、そのオプションを完全に無視するようです。私は何を間違っていますか?
AWS::S3::S3Object.url_for(key, bucket, 
    :authenticated => true, 
    :use_ssl => (ENV['RAILS_ENV'] == 'production'),
    :expires_in => S3_EXPIRE_TIME,
    :response_content_disposition => 'attachment;'   # seconds
    )