Hi Andy,
Gatling relies on AsyncHttpClient for handling Accept-Encoding.
Indeed, AHC ignores configured Accept-Encoding and automatically adds its own one when enabled.
Main Gatling goal is to mimics browsers/standard user agents, and this behavior suites 99,999% of the user-agents (you're the first one it's an issue for).
Then, mixing virtual users with compression enabled and others without is not possible at the moment. Not technically impossible, just unsupported. Until then, you'd have to run 2 different Gatling instances with different configuration, and merge the results (search for "Scaling out" in our documentation).
Before considering such a feature, could you elaborate about your use case, please?
- Why do you need to mix virtual users with and without Accept-Encoding?
- Why does "deflate" and "gzip, deflate" make that big a difference for you
Cheers,
Stéphane