GoogleChrome / GoogleChrome/lighthouse

CLI option to reset cache but not storage APIs

Open
#2,599 17 comments 2 reactions 0 assignees View on GitHub
feature P2
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

Hi everyone :)

I've started using lighthouse for one of our large scale Angular 2/4 apps and it's working really nicely. Thank you!

The app has authentication, cookie-layers etc... So I needed to run lighthouse with `chrome-debug` and use `--disable-storage-reset` which does [[link](https://github.com/GoogleChrome/lighthouse/blob/master/docs/readme.md#testing-on-a-site-with-authentication)]:
```
Disable clearing the browser cache and other storage APIs before a run
```
Incidentally I was hoping that `--disable-storage-reset` would only disable a reset for Cookies, localstorage and the other APIs and that the cache on the other hand would still be reset before every run.

That behavior is the one I'm most interested in since it's a very common case that users will access new areas (no content in browser cache) of the app but will have already logged in. Currently I can't test that.

So I'd recommend another CLI option that does just that.

What do you think?

Best, Jon

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.