How does caching work under the hood when we use ResponseCache ,lookup cache policy , populate cache policy . and how to cache a response of an endpoint so that the service callout is not called again using those policies ?
and is it possible to cache the response of a target endpoint? or a whole proxy ?
is the cache accessible to view anyhow from apigee environment rather than this command ????
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \
https://apigee.googleapis.com/v1/organizations/{projectID}/environments/test/caches
Solved! Go to Solution.
Here is an older example, but it shows the basic approach for response caching (put the ResponseCache policy both in Request flow to respond with cached data if exists, and also in Response flow to cache the response): https://github.com/apigee/api-platform-samples/tree/master/sample-proxies/response-cache