我有一个AWS API Gateway endpoint(Invoke URL) ,
我创建了一个自定义域,用我的API网关映射域,因为Invoke URL由非用户友好字符组成,
我使用API网关映射了自定义域,
I followed these steps - http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
默认调用URL和自定义域 endpoints 都响应正确的数据,
到现在为止还挺好 .
在进一步测试中,我发现由于我的默认调用URL已启用缓存,
I enabled API Gateway cache by following this -
http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html
响应是几毫秒,
奇怪的是,自定义Domian映射 endpoints 响应较慢,看起来它没有缓存先前的响应,即使在API网关上正确启用了缓存,
I need to Enable Caching on the Custom Domian as well ,
我是否需要在API网关面前添加CloudFront?
我该如何实现这一目标?
我无法在CloudFront原点中找到我的调用URL,
我也无法理解这些解决方案 -