Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Response cache break timeout based on route resource

Not applicable

Can response cache timeouts vary across API resources?

For example, this works as expected.

API response cache for 1hr.

http://test.net/v1/base/alpha

<CacheKey>

<Prefix/>

<KeyFragment ref="request.uri" type="string"/>

</CacheKey>

<Scope>Exclusive</Scope>

<ExpirySettings>

<ExpiryDate/>

</TimeOfDay>

<TimeoutInSec ref="">3600</TimeoutInSec>

</ExpirySettings>

How can i configure Apigee to only cache this response for 15 secs?

http://test.net/v1/base/beta

Is there a way to add conditional logic into "TimeoutInSec" ?

<TimeoutInSec ref="">3600</TimeoutInSec>

Thanks in advance

0 1 371
1 REPLY 1