更新时间:2023-11-30 23:07:58
问题是我在 CloudFront 中设置了源不转发查询字符串,因此当 S3 收到请求时,它会在没有查询参数的情况下正确重定向.您可以在 CloudFront > 行为 > 转发查询字符串中找到此设置.
The problem was that I had the origin set up in CloudFront not to forward Query Strings so when S3 got the request it would redirect properly without the query params. You can find this setting in CloudFront > Behaviors > Forward Query Strings.