O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the HTTP Cache Manager component

In practice, web browsers have a caching mechanism to reduce the amount of data transferred over the network. This in turn gives end users a better experience. If data has not changed since the first time it was fetched from the remote server, there is no point fetching it again and thus, it can be fetched from a locally cached copy of the browser.

This same behavior can also be achieved with JMeter using the HTTP Cache Manager component. With the HTTP Cache Manager configured, JMeter is able to cache responses from sampled requests and serve them back on subsequent requests if they have not changed on the remote server.

How to do it…

In this recipe, we will add an HTTP Cache Manager component to a test plan ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required