How to force apigee not to cache empty results from backend services

How to force apigee not to cache empty results from backend services

0 2 107
2 REPLIES 2

 

lbaskar, create a flag if response is empty using javascript policy in target response flow and the use flow condition to response cache policy as below 
<Step>
<Name>rc_responseCache</Name>
<Condition>( isEmptyResponse != "true" ) </Condition>
</Step>
 

Thanks  for your response pmallikarjuna.