Adding meta-data to a folder in amazon S3 -


i can set 'cache-control'(meta data) of particular file , particular bucket in amazon s3.

but want cache-control set every file in particular folder(not entire bucket, folder).

also when upload new file in particular folder, cache-control header gets automatically set new file. have followed this , s3 documentation.

is there way can achieved?

based on question's answer here found tool can run recursive files in particular folder, won't applied new files.

steps:

git clone https://github.com/s3tools/s3cmd

run s3cmd --configure

(you asked 2 keys - copy , paste them confirmation email or amazon account page. careful when copying them! case sensitive , must entered accurately or you'll keep getting errors invalid signatures or similar. remember add s3:listallmybuckets permissions keys or accessdenied error while testing access.)

./s3cmd --recursive modify --add-header="cache-control:public ,max-age= 31536000" s3://your_bucket_name/


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -