Running lighthouse for cached pages #15545
-
We use lighthouse in a MEAN stack app to record and store the performance metrics. The ask is to compare the lighthouse performance of a page with cache and without cache. We use puppeteer launcher and run the lighthouse. Is there a recommended flow of running lighthouse to get performance comparision for a page with cache and without cache? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You want the |
Beta Was this translation helpful? Give feedback.
You want the
--disable-storage-reset
/disableStorageReset
setting. Run first without that, then again with that setting. You should use the same puppeteer instance so that the cache persists (when LH launches from the CLI, it uses a fresh profile, so no good).