当文件在amazons3中发生更改时,该文件不会在amazoncloutfront中发生更改


When the file change in amazon s3, the file not change in amazon cloutfront

我使用amazons3进行图像存储。我可以上传任何文件,这是非常好的。但当我在s3中删除或更新图像时,cloutfront仍然保留旧图像。

如何更改cloutfront图像文件?

我将php与codeigniter一起使用。我使用这个图书馆。

是的,我找到了解决方案。

如果我像这样更改文件缓存控制值max-age=SECOND,则为该文件每隔SECOND关闭前端刷新缓存。

详细信息:亚马逊

对于php用户,s3库选项:library

将cloudfront的TTL降低到可用的最小值。你的问题会解决的。