Skip to content
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

[docs] Describe '--cache' option #5935

Closed
2 tasks done
miherlosev opened this issue Feb 9, 2021 · 1 comment
Closed
2 tasks done

[docs] Describe '--cache' option #5935

miherlosev opened this issue Feb 9, 2021 · 1 comment
Assignees
Labels
AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.
Milestone

Comments

@miherlosev
Copy link
Collaborator

miherlosev commented Feb 9, 2021

Need to do

  • Describe the --cache option.
  • Add paragraph to the Decrease test execution time topic.

Draft "--cache" option description:
The --cache option enables the caching of the website resources (styles, script, images, etc.) on the TestCafe's proxy side.
image
TestCafe emulates the native browser behavior and cache only these files that the browser will cache without TestCafe.
TestCafe does not cache the HTML pages and some other resources because it may break the Roles feature.
The use of this feature can be useful if your application loads a lot of resources (scripts, styles, fonts, etc.) on the first visit and cache them. Note, that this feature is experimental.

The '--cache' option is available in 3 interfaces: command-line, programmatic, and configuration file.
Command-line

testcafe chrome tests --cache

Programmatic

runner.run({ cache: true });

Configuration file

{
 "cache": true
}
@miherlosev miherlosev added AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation. labels Feb 9, 2021
@DIRECTcut DIRECTcut self-assigned this Feb 17, 2021
@AndreyBelym AndreyBelym added this to the Sprint #75 milestone Feb 24, 2021
@DIRECTcut
Copy link
Contributor

fixed in #5969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

3 participants