AWS cloudfront not updating on update of files in S3

后端 未结 9 515
无人共我
无人共我 2021-02-01 14:12

I created a distribution in cloudfront using my files on S3. It worked fine and all my files were available. But today I updated my files on S3 and tried to access them via Clou

9条回答
  •  孤街浪徒
    2021-02-01 14:43

    How to change the Cache-Control max-age via the AWS S3 Console:

    • Navigate to the file whose Cache-Control you would like to change.
    • Check the box next to the file name (it will turn blue)
    • On the top right click Properties
    • Click Metadata
    • If you do not see a Key named Cache-Control, then click Add more metadata.
    • Set the Key to Cache-Control set the Value to max-age=0 (where 0 is the number of seconds you would like the file to remain in the cache). You can replace 0 with whatever you want.

提交回复
热议问题