Author : MD TAREQ HASSAN | Updated : 2020/11/24

Caching in APIM

Caching policies

Response caching

Configuring response caching

Inbound policy

<cache-lookup vary-by-developer="false" vary-by-developer-groups="false">
    <vary-by-header>Accept</vary-by-header>
    <vary-by-header>Accept-Charset</vary-by-header>
    <vary-by-header>Authorization</vary-by-header>
</cache-lookup>

Outbound policy

<cache-store duration="20" />

Details: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-cache#-add-the-caching-policies