Cheers,
I have a deployed Amazon API Gateway that is working perfectly when the API Gateway Cache is not turned on, but returns only empty results when I turn the cache on.
Design: API Gateway => Lambda function (custom authorization) => Lambda function (retrieving actual data)
Without cache I get CloudWatch log entries for both the authorization function and the actual data function, but with cache it seems only the authorization function is called (authorization looks ok) and the actual data is never retrieved.
The results returned to the client look completely similar (200 OK) with the only difference being no data is returned when cache is enabled.
Any ideas how to debug this or what might be the problem? :)