Amazon CloudFront Latency

后端 未结 3 1943
栀梦
栀梦 2020-11-22 15:52

I am experimenting with AWS S3 and CloudFront for a web application that I am developing.

In the app I\'m letting users upload files to the S3 bucket (using the AWS

3条回答
  •  一生所求
    2020-11-22 16:00

    As observed in your comment, it seems that google chrome is messing up with your upload/preview strategy:

    1. Chrome is requesting the URL that currently doesn't have the content.
    2. the request is cached by cloudfront with invalid response
    3. you upload the file to S3
    4. when preview the uploaded file the cloudfront answers with the cached response (step 2).
    5. after the cloudfront cache expires, cloudfront hits origin and the problem can no longer be reproducible.

提交回复
热议问题