QuestionQ7

VerifiedImplement performant and reliable Mule applications

A developer deploys an API to CloudHub and applies an OAuth API policy in API Manager. During testing, the API response is slow, so the developer reconfigures the API to apply the out-of-the-box HTTP Caching policy first and the OAuth API policy second.

What occurs when an HTTP request is received?

Explanation

When HTTP Caching is placed before OAuth, a cache hit causes the caching policy to return the stored response without continuing through later policies in the chain. OAuth, which is ordered after HTTP Caching, is therefore not evaluated for that request.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!