-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K6 Browser adds no-cache headers #4165
Comments
Sounds reasonable to me to make @ankur22 @inancgumus what do you think? |
@jgaalen thanks for reaching out with a feature request. Currently, as you have worked out, there is no way to cache objects/cookies. We are aware of this limitation and are working on triaging this work. I can't say when the implementation work will start. From a quick search it looks like there are several ways we could attempt to cache or store the state of the website:
|
Thank you for your reply and options. Not sure if it was clear, but the main request is, to have caching available within a single iteration. It is a nice to have to have a predefined cache, so it is possible to simulate revisits of users rather than always simulate new users (which will have a much higher unrealistic strain on the backends) |
I've noticed the K6 Browser adds the no-cache headers to all requests, preventing the browser from using a cache. This means that subsequent actions/pages can't use the cache. The problem with this, is that objects are retrieved too many times and page load times aren't realistic.
When K6 Browser clicks around, it should not keep doing the same requests to the same objects, that makes no sense. I couldn't find a way to disable this way of 'disabling' the local cache. I thought every browser context has it's own context -> cache/cookies so I don't see a reason why cache should be disabled.
The text was updated successfully, but these errors were encountered: