How to add cache control in AWS S3?

+1 vote
I have moves image files to S3 using s3cmd. Now I want to add cache control to it. How to do it?
Jul 25, 2018 in Cloud Computing by brat_1
• 7,080 points
79 views

1 answer to this question.

0 votes

Use modify command along with s3cmd  to add cache control as shown:

./s3cmd --recursive modify --add-header="Cache-Control:max-age=86400" s3://yourbucket/


Thank You
answered Jul 25, 2018 by Gopalan
• 1,260 points

Related Questions In Cloud Computing

+2 votes
2 answers

Is there a way to add cache control in AWS S3?

use of  current upstream master branch will ...READ MORE

answered Apr 10, 2018 in Cloud Computing by hemant
• 5,750 points
738 views
0 votes
1 answer
+1 vote
2 answers

How does Elastic Beanstalk and EC2 contribute to automation in AWS?

I hope this helps AWS Elastic Beanstalk is the ...READ MORE

answered Jul 26, 2018 in Cloud Computing by code_ninja
• 6,220 points
64 views
0 votes
1 answer

How to delete the files from AWS S3 except the recently 5 added/updated files?

Use AWS s3 rm command with multiple --exclude options as shown: aws ...READ MORE

answered Jul 30, 2018 in Cloud Computing by Gopalan
• 1,260 points
101 views
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 15,350 points
315 views
0 votes
1 answer
+3 votes
2 answers

How to download folder from AWS S3?

To Download using AWS S3 CLI : aws ...READ MORE

answered Sep 6, 2018 in Cloud Computing by eatcodesleeprepeat
• 4,670 points
3,394 views