Hi guys, I have a proxy with one GETand POST methods. I used Response Cache policy.
Now the GET reuqests execute fine but POST request are not reflecting in the backend(BaaS).
If I remove the response cache then POST request gets updated in BaaS.
Is there a way/condition by which I can disable response cache while POST request?
Note- For POST I'm using an Ajax call outside Apigee.
Answer by arghya das · Apr 23, 2015 at 04:25 AM
If you simply want to skip the cache lookup and cache population for POST calls, you can use SkipCacheLookupthe SkipCachePopulation elements in your cache policy. For example:
<SkipCacheLookup>request.verb = "POST"</SkipCacheLookup>
This would skip the cache lookup, similar thing can be done for SkipCachePopulation. You can refer to the docs here: http://apigee.com/docs/api-services/reference/response-cache-policy#element_reference for more details
Accessing POSTed form param from policy 3 Answers
How to Cache POST request? 4 Answers
Is it possible to create a customized policy in Apigee Edge? (aside from the built-in policies) 1 Answer
Does ResponseCache caches the complete HTTP response (including headers)..? 2 Answers
How to Invalidate a cache entry that was populated by ResponseCache? 3 Answers