7

I've got about 200k images in a bucket. They all have expires headers of 2050 but I've read you shouldn't send an expires header older than a year. I want to schedule a script to run every month and set the headers to 6 months away. Anything out there? Obviously I'd like to avoid iterating 200k objects.

JohnFx
  • 34,542
  • 18
  • 104
  • 162
Kyle West
  • 8,934
  • 13
  • 65
  • 97
  • Duplicate: https://stackoverflow.com/questions/21605501/how-to-set-expires-header-to-all-images-in-a-bucket-in-amazon-s3 – GEMI Apr 04 '18 at 06:54

3 Answers3

5

Disclaimer: I am the developer of this tool, but I think it may answer your question.

CloudBerry Explorer freeware will be able to do it in the next release.

Rais Alam
  • 6,970
  • 12
  • 53
  • 84
cloudberryman
  • 4,598
  • 2
  • 27
  • 14
2

Maybe this is a dumb question. But why set up a script and all that when you can simple add max-age=26297438 ???

max-age=26297438 = about 10 months

Both yslow and g speed accept that an acceptable future date setting

Hydn
  • 21
  • 1
2

S3 doesn't appear to support bulk updates, as its API's contain no such operations. Some third-party tools claim bulk update capability; however, I wager that they merely automate iteration.