Emulate browser cache

Hello,

Can Gatling emulate the caching characteristics of a browser? That is, can it be made to respect Etag and Cache-Control headers on the client side? Clients often ask for total page transfer time for typical users, so these settings have to be taken into account.

-Paul

Hi,

Sorry, but currently, there isn’t such a function.

Nicolas

Hi Paul,

As Nicolas said, Gatlign is not shipped with such feature.

However, if you record your scenarios with the Recorder, you can catch a simili of browser caching. What I mean is that, for sure, this won’t be perfect, but as web browsers are using cache, you may be able to record the HEAD requests sent by the browser…

I don’t think adding cache resolution is being planned for now, if it becomes a popular demand, we may have a look at it.

If you want to know more about what we plan to do, you can have a look at our milestones : https://github.com/excilys/gatling/issues/milestones

Cheers,
Romain

We could probably add a simple caching feature, without expiration handling.

Steph

I opened an issue for this:
https://github.com/excilys/gatling/issues/623

I’ll implement it as soon as… I find time…

2012/7/24 Stéphane Landelle <slandelle@excilys.com>