如何在 Visual Studio 负载测试中关闭缓存请求

发布于 2024-07-13 10:58:59 字数 119 浏览 3 评论 0原文

运行负载测试时,我想关闭缓存的请求。

我的网络测试已关闭缓存控制设置,这应该意味着不缓存。 然而,它看起来像是在缓存图像等; 这是我不想要的。

我该怎么做?
谢谢

When running a load test I want to turn off cached requests.

My web test has the Cache Control setting turned off, which is supposed to mean don't cache. However, it looks like it is caching the images etc; which I don't want.

How can I do this?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甚是思念 2024-07-20 10:58:59

这是通过方案属性中的“新用户百分比”设置来设置的。 为了确保没有缓存,请将该属性设置为 100。这表示 100% 的模拟用户将看起来是第一次访问该站点。

This is set by the "Percentage of New Users" setting in the scenario properties. To ensure that there is no caching, set the property to 100. Which indicates that 100% of the simulated users will appear to be coming at the site for the first time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文