AWS Cloudfront不会在S3中更新文件更新 [英] AWS cloudfront not updating on update of files in S3
本文介绍了AWS Cloudfront不会在S3中更新文件更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用S3上的文件在cloudfront中创建了一个发行版。
工作正常,我的所有文件都可用。但是今天我在S3上更新了文件,并尝试通过Cloudfront访问它们,但是它仍然提供了旧文件。
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 Cloudfront, but it still gave old files.
我丢失了什么?
推荐答案
您应该使CloudFront分布缓存中的对象无效。
过去,您一次只能处理1个文件,现在可以使用通配符了,例如/ images / *
You should invalidate your objects in CloudFront distribution cache. Back in the old days you'd have to do it 1 file at a time, now you can do it wildcard, e.g. /images/*
https://aws.amazon.com/about-aws/whats-new/2015/05/amazon-cloudfront-makes-it -使多个对象失效的简便方法/
这篇关于AWS Cloudfront不会在S3中更新文件更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文