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

Custom metadata attributes #4063

Closed
cyberduck opened this issue Jan 6, 2010 · 4 comments
Closed

Custom metadata attributes #4063

cyberduck opened this issue Jan 6, 2010 · 4 comments
Assignees
Labels
enhancement fixed s3 AWS S3 Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

mini created the issue

It would be useful if one could set additional headers for S3 objects, some of which include:

  • Content-Encoding (e.g. 'gzip')
  • Content-Type (e.g. 'application/x-javascript')
  • more choices for Cache-Control (e.g. '24 hours', '1 week', etc.)
@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [4063 mini]:

It would be useful if one could set additional headers for S3 objects, some of which include:

I agree support for S3 should be extended.

  • Content-Encoding (e.g. 'gzip')
  • Content-Type (e.g. 'application/x-javascript')

The MIME type should be set automatically from the mappings in [source:/trunk/lib/mime.types].

  • more choices for Cache-Control (e.g. '24 hours', '1 week', etc.)

This is in #3761.

@cyberduck
Copy link
Collaborator Author

mini commented

Replying to [comment:1 dkocher]:

  • Content-Encoding (e.g. 'gzip')
  • Content-Type (e.g. 'application/x-javascript')
    The MIME type should be set automatically from the mappings in [source:/trunk/lib/mime.types].
    My problem is that CloudFront doesn't do compression of files it serves, so I have to add files to S3 with for instance a '.js' content-type, but with a content-encoding of 'gzip' because that's what the file really is. As far as I've seen, Cyberduck doesn't provide a way for me to do that.

(http://waynepan.com/2008/11/23/taking-full-advantage-of-cloudfront/) probably explains it better than me.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#4400 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Implemented in 3fbb1e0. Also available for Rackspace Cloudfiles.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement fixed s3 AWS S3 Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants