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

后端 未结 9 619
情书的邮戳
情书的邮戳 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:49

    Here is how I do it using the CloudFront control panel.

    1. Select CloudFront from the list of services.
    2. Make sure Distributions from the top left is selected.
    3. Next click the link for the associated distribution from the list (under id).

    enter image description here

    1. Select the Invalidations tab.
    2. Click the Create Invalidation button and enter the location of the files you want to be invalidated (updated).

    For example:

    enter image description here

    1. Then click the Invalidate button and you should now see InProgress under status.

    enter image description here

    It usually takes 10 to 15 minutes to complete your invalidation request, depending on the size of your request.

    Once it says completed you are good to go.

    Tip: Once you have created a few invalidations if you come back and need to invalidate the same files use the select box and the Copy link will become available making it even quicker.

提交回复
热议问题