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

core(gather-runner): call clearDataForOrigin on teardown #5933

Merged
merged 3 commits into from Sep 5, 2018
Merged

core(gather-runner): call clearDataForOrigin on teardown #5933

merged 3 commits into from Sep 5, 2018

Conversation

midzer
Copy link
Contributor

@midzer midzer commented Aug 29, 2018

Hi all :)

Summary

What this change does: always clear browser cache for reqested URL after successfull lighthouse run.

See issue below. Besides, it's always good advice to free resources in computing after specific task is done properly.

Related Issues/PRs

#4889

I'm off for now. Support on this PR is welcome :)

Cheers
midzer

@@ -444,6 +445,7 @@ class GatherRunner {
firstPass = false;
}
}
await driver.clearDataForOrigin(options.requestedUrl);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like we should only do this if (!options.settings.disableStorageReset) === true like the previous call.

@paulirish paulirish merged commit adc0275 into GoogleChrome:master Sep 5, 2018
@midzer midzer deleted the clearCacheAfterRun branch September 5, 2018 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants