title: How do I update metadata for an existing Amazon S3 file?
body: <p>I need to update the cache control header in all AmazonS3's Cloud Files. However, I can't figure out how I do that using the jclouds API.
  I'm using apache jclouds plugin. And I got two related answers:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/22133914/jclouds-how-do-i-update-metadata-for-an-existing-blob">jclouds : how do I update metadata for an existing blob?</a></li>
  <li><a href="https://stackoverflow.com/questions/9797276/set-expires-header-for-an-existing-s3-object-using-aws-java-sdk">Set Expires header for an existing S3 object using AWS Java SDK</a></li>
  </ul>
  
  <p>The first answer is suggesting to use SwiftKey Api class which is not available in grails's jcloud plugin. The second answer is using AWS java sdk for which there is already a grails wrapping plugin <a href="https://grails.org/plugin/aws-sdk" rel="noreferrer">https://grails.org/plugin/aws-sdk</a> but it doesn't support metadata update.</p>