如何在 AWS S3 上完全不设置缓存?

How to set no cache AT ALL on AWS S3?

我开始使用 AWS S3 来为我的用户提供一种快速的方式来下载我的 Win32 应用程序的安装文件。每个安装文件大约有 60MB,下载速度非常快。

但是,当我上传应用程序的新版本时,S3 会继续提供旧文件!我只是重命名旧文件并上传与旧文件同名的新版本。上传后,当我尝试下载时,下载的是旧版本。

我搜索了一些解决方案,这是我尝试过的:

None 其中解决了问题,AWS 继续提供旧文件而不是新文件!

我经常会上传新版本,所以我需要当用户尝试下载时,S3 根本不使用缓存。

请帮忙。

我认为这种行为可能是因为 S3 使用最终一致的模型,这意味着更新和删除最终会传播,但不能保证这会立即发生,甚至不能保证在特定时间内发生。 (请参阅 here for the specifics of their consistency approach). Specifically, they say "Amazon S3 offers eventual consistency for overwrite PUTS and DELETES in all Regions" and I think the case you're describing would be an overwrite PUT. There appears to be a good answer on a similar issue here: ,其中涉及一致性问题以及如何解决该问题,希望对您有所帮助