flexera-public / right_aws

RightScale Amazon Web Services Ruby Gems
MIT License
451 stars 175 forks source link

Updating Cache-Control Header on S3 Files #155

Open neilchaudhuri opened 11 years ago

neilchaudhuri commented 11 years ago

I have tried numerous ways to use right_aws to set a value for the Cache-Control header on my images on S3. However, I can never change the key.headers. At best, I can change key.meta_headers. The problem though is that the change doesn't affect anything when the file is downloaded by the browser. Inspecting the response headers of the downloaded files reveals no difference.

Is this a limitation, or feature, of files stored on S3? If not, please tell me which API call I should use to have the Cache-Control header set on the files when they come to the browser.

Thanks.

neilchaudhuri commented 11 years ago

Anyone? Bueller?