Cache policy for cache control

Upasana Ghosh 346 Reputation points
2023-02-06T15:34:13.31+00:00

................

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,751 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,141 Reputation points
    2023-02-07T18:53:46.04+00:00

    Upasana Ghosh Thank you for sharing the additional context. Based on your info, you have set headers Cache-Control as private and clientappid with some value in the request, but it didn't work. After reviewing the policy snippet, this should work as you expect.

    Please see the sample request and response below when I tested the policy snippet in inbound section in my APIM.

    User's image

    Evaluation detail:User's image

    I would recommend you capture full trace via Test console as described in docs: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector and review the context headers step by step and then evaluate the expression accordingly (don't share the trace without removing critical info here).
    If you still face any issues and need assistance in troubleshooting, suggest you open support ticket with our support team so that they can collect trace and help you find the cause. For any help in case, you don't have support plan, let me know and I can assist you in creating one-time support request.

    0 comments No comments