Amazon S3静态站点提供旧内容 [英] Amazon S3 static site serves old contents

查看:81
本文介绍了Amazon S3静态站点提供旧内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的S3存储桶托管一个静态网站.我没有设置Cloudfront.

My S3 bucket hosts a static website. I do not have cloudfront set up.

我最近更新了S3存储桶中的文件.文件更新后,我在存储桶中手动确认.它仍然提供较旧版本的文件.在S3上托管的静态网站上是否发生某种缓存或版本控制?

I recently updated the files in my S3 bucket. While the files got updated, I confirmed manually in the bucket. It still serves an older version of the files. Is there some sort of caching or versioning that happens on Static websites hosted on S3?

到目前为止,我还无法找到任何解决方案.注意:未启用Cloudfront.

I haven't been able to find any solution on SO so far. Note: Cloudfront is NOT enabled.

推荐答案

在S3上托管的静态网站上是否发生某种类型的缓存或版本控制?

Is there some sort of caching or versioning that happens on Static websites hosted on S3?

Amazon S3存储桶为新对象的PUTS提供写后读取一致性,并为覆盖PUTS和DELETES最终提供一致性

Amazon S3 buckets provide read-after-write consistency for PUTS of new objects and eventual consistency for overwrite PUTS and DELETES

这是什么意思?

如果您在s3中创建新对象,则可以立即访问您的对象-但是,如果您对现有对象进行更新,则最终会从s3中获取"最新版本的对象,因此s3可能仍会为您提供该对象的先前版本.

If you create a new object in s3, you will be able to immediately access your object - however in case you do an update of an existing object, you will 'eventually' get the newest version of you object from s3, so s3 might still deliver you the previous version of the object.

我相信从一段时间以前开始,写入后读取的一致性也可以在美国标准地区进行更新.

I believe that starting some time ago, read-after-write consistency is also available for update in the US Standard region.

您需要等待多少时间?取决于它,亚马逊并没有提供太多有关此的信息.

how much do you need to wait ? well it depends, Amazon does not provide much information about this.

你能做什么?不多.如果您要确保S3存储桶传递文件没有任何问题,请在存储桶中上传新文件,则可以立即访问

what you can do ? no much. If you want to make sure you do not have any issue with your S3 bucket delivering the files, upload a new file in your bucket, you will be able to access it immediately

这篇关于Amazon S3静态站点提供旧内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆