Deepak
Deepak

Reputation: 43

Wso2 Api Manager response caching issue

I have created an API and enable the response cache from run time configuration but still gateway sending request to backend API on Version 3.0

Upvotes: 0

Views: 291

Answers (1)

Bee
Bee

Reputation: 12513

The response cache key includes all the headers and request body, hashed. Therefore, if 2 of your requests have at least one different header, it will be a cache miss.

In the case of Postman, it always sends a random value in Postman-Token header. Hense the cache miss always.

Upvotes: 1

Related Questions