Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all meta data has "x-amz-meta" prefix to the name #101

Open
lieutenantstan opened this issue Aug 26, 2014 · 0 comments
Open

all meta data has "x-amz-meta" prefix to the name #101

lieutenantstan opened this issue Aug 26, 2014 · 0 comments

Comments

@lieutenantstan
Copy link

I was trying to use this gem to set the Cache-Control header for my object like so:

 file_obj.metadata["Cache-Control"] = "max-age=155520000, public"

the result when I fetch the metadata is: "x-amz-meta-cache-control" which is not what I want.

Strangely enough, if I set the Cache-Control metadata via the AWS S3 web console, the Cache-Control metadata does not show up in the files meta data in aws-s3 (it shows all other metadata), but does show up if I inspect the source in Chrome's dev tools.

I don't know if this is intended behavior or a limitation of Amazon's API, but it seems like the metadata commands should have parity with what one can do on the web console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant