首页 > 解决方案 > Local lighthouse has much different score than web.dev lighthouse

问题描述

While running my create-react-app website on web.dev to see the lighthouse results, I noticed that they weren't exactly good. Screenshot of web.dev results

However, when I run lighthouse on my system with these settings:

Local Lighthouse settings

I get better results:

Screenshot of local lighthouse results

Note that I am running local lighthouse in incognito.

Is it IndexedDB that is making my results better? If so, how can I stop IndexedDB from doing so?

Also, just as a side note (this doesn't really need to be answered) are these results okay? It's a PWA so everything would be cached afterwards. Thanks!

标签: javascriptreactjslighthouse

解决方案


推荐阅读