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?

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인