Does API Gateway honor cache-control headers from integration responses?

0

Does API Gateway honor cache-control headers from integration responses? Is there more documentation on what is supported for the response process of cache-control headers?

Preston
已提問 10 個月前檢視次數 728 次
2 個答案
0

Hello,

API Gateway Cache Control works at stage level. API Gateway cache invalidation will work when client sends a request with invalidation header. Therefore, API Gateway doesn't honor integration response cache (cache-control headers) from integration responses, headers are meant for clients and not for API Gateway. For more information, kindly refer link [1].

[1]https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html#invalidate-method-caching

Swati
已回答 10 個月前
0

So if the integration response sends

Cache-Control: no-cache

to the API Gateway, gateway will ignore this and cache it anyway based on the overall cache configurations? This seems incorrect.

Preston
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南