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.
Evaluation detail:
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.