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
preguntada hace 10 meses728 visualizaciones
2 Respuestas
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
respondido hace 10 meses
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
respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas