Amazon web services CloudFront延迟显示来自S3的项目

Amazon web services CloudFront延迟显示来自S3的项目,amazon-web-services,amazon-s3,amazon-cloudfront,Amazon Web Services,Amazon S3,Amazon Cloudfront,我已经使用S3作为分发版设置了CloudFront,并且注意到,有时当我将文件上载到S3时,无法直接从CloudFront访问文件。这并不是一直都在发生,有时它直接起作用,但有时不起作用 如果您尝试在上传后直接访问文件,则偶尔会出现以下错误,并且在CloudFront开始交付内容之前可能需要1-2分钟 This XML file does not appear to have any style information associated with it. The document tree

我已经使用S3作为分发版设置了CloudFront,并且注意到,有时当我将文件上载到S3时,无法直接从CloudFront访问文件。这并不是一直都在发生,有时它直接起作用,但有时不起作用

如果您尝试在上传后直接访问文件,则偶尔会出现以下错误,并且在CloudFront开始交付内容之前可能需要1-2分钟

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>images/origin/company1_be6ead62b1.jpg</Key>
<RequestId>VGR27TBJJ71001NN</RequestId>
<HostId>xbl2hVle6TMwaucU6LAznyJynINLCx2enuCH812yPJ8h75Rxzf/pEdVAt/ajQkLqG7ppAArc/8s=</HostId>
</Error>

除了直接通过S3URL交付内容之外,还有其他解决方法吗?我让用户上传图像直接到我的桶,并希望使用CDN。但是当这种情况发生时,一旦用户上传了他们的文件,它就会显示为一张空白图像。

您确认文件上传确实成功了吗?您可以直接从S3访问该文件吗?是的,我可以直接访问该文件,但不能通过cloudfront访问。我怀疑cdn链接是在文件成功上传之前被访问的,从而导致文件未找到错误。