Open aldy120 opened 4 years ago
Request to CloudFront
curl -H 'if-none-match: "e44ee85929713579291e899e2b6e2e08"' https://cube.lichi-chen.com/sdfawefaew -vo /dev/null
< HTTP/2 304
< date: Mon, 09 Mar 2020 13:18:09 GMT
< access-control-allow-origin: *
< access-control-allow-methods: GET
< last-modified: Thu, 11 Jul 2019 17:20:51 GMT
< etag: "e44ee85929713579291e899e2b6e2e08"
< server: AmazonS3
< vary: Origin,Access-Control-Request-Headers,Access-Control-Request-Method
< x-cache: Error from cloudfront
< via: 1.1 b4ef37917b36c601eeeeb55cdda4288c.cloudfront.net (CloudFront)
< x-amz-cf-pop: SIN2-C1
< x-amz-cf-id: mURPvzEyg-Q2xn-2V5AkB4asfLQXTIoMcCTs3n1jozn3wh2KmXD8OQ==
<
Possible solutions:
vary: origin
https://jsfiddle.net/ugv6jfyd/?fbclid=IwAR0d_5twupCY8BPSeUapx_jRwkDQ5RkbTPeTyR72OygbA0Ka3dIlylYsxdc
This error only occurs when enable browser cache.