How to set expires headers to all images in a bucket in Amazon S3

后端 未结 6 1105
予麋鹿
予麋鹿 2020-12-23 11:59

We have around 10,000+ images in a bucket in Amazon S3, how can I set the expires header on all of the images in one go?

6条回答
  •  太阳男子
    2020-12-23 12:23

    An alternative solution is to add response-expires parameter in your URL. It sets the Expires header of the response.

    See Request Parameters section in http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html for more detail.

提交回复
热议问题