How can I update files on Amazon's CDN (CloudFront)?

后端 未结 9 538
情书的邮戳
情书的邮戳 2020-12-30 05:29

Is there any way to update files stored on Amazon CloudFront (Amazon\'s CDN service)? Seems like it won\'t take any update of a file we make (e.g. removing the file and stor

相关标签:
9条回答
  • 2020-12-30 05:56

    Set TTL=1 hour and replace

    http://developer.amazonwebservices.com/connect/ann.jspa?annID=655

    0 讨论(0)
  • 2020-12-30 05:56

    Download Cloudberry Explorer freeware version to do this on single files: http://blog.cloudberrylab.com/2010/08/how-to-manage-cloudfront-object.html

    0 讨论(0)
  • 2020-12-30 06:01

    Amazon added an Invalidation Feature. This is API Reference.

    Sample Request from the API Reference:

    POST /2010-08-01/distribution/[distribution ID]/invalidation HTTP/1.0
    Host: cloudfront.amazonaws.com
    Authorization: [AWS authentication string]
    Content-Type: text/xml
    
    <InvalidationBatch>
       <Path>/image1.jpg</Path>
       <Path>/image2.jpg</Path>
       <Path>/videos/movie.flv</Path>
       <CallerReference>my-batch</CallerReference>
    </InvalidationBatch>
    
    0 讨论(0)
提交回复
热议问题