I am trying to write a cache store policy onto my apim. But for some reason, the cache is not clearing or dropped after the mentioned duration. Below is my code snippet. Code snip
I have a header with bearer token authorization and query parameter as emailid. Can someone help to understand why the cache is not dropped after the time?
<policies>
<inbound>
<base />
<!-- Setup unique key -->
<!-- store and retrieve cache -->
<cache-lookup vary-by-developer="false" vary-by-developer-groups="false" allow-private-response-caching="true" must-revalidate="true" downstream-caching-type="none" caching-type="external" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
<cache-store duration="30" />
</outbound>
<on-error>
<base />
</on-error>
</policies>