Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I replay a scenario, caching image files but not text files?

0
Posted

How do I replay a scenario, caching image files but not text files?

0

The Grinder itself does not cache files. It merely simulates browser behaviour. The Not-Modified-Since headers are recorded by the TCPProxy filter, so what you record with the TCPProxy is the caching behaviour of the browser you are using. If this is not what you want you could add a function to your test script which takes an HTTPRequest, decides whether it should be considered as “cached” or not, and adds a Not-Modified-Since header as appropriate.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123