Hi! I’m a beginner of AWS. I’m curious about whether Amazon API Gateway can cache by path? And control every path’s TTL?
For example:
Path1 cache TTL=60,
Path2 no-cache TTL=0,
Path3 cache TTL=3600
Hi! I’m a beginner of AWS. I’m curious about whether Amazon API Gateway can cache by path? And control every path’s TTL?
For example:
Path1 cache TTL=60,
Path2 no-cache TTL=0,
Path3 cache TTL=3600
Yes. Here is the official documentation: Enabling API caching to enhance responsiveness - Override API Gateway stage-level caching for method caching
Here is describes precisely what you are requesting.
You can override stage-level cache settings by enabling or disabling caching for a specific method. By increasing or decreasing its TTL period; or by turning encryption on or off for cached responses.