Pagespeed Developer API v4与v5评分浏览器缓存

时间:2019-04-05 17:59:18

标签: api google-api pagespeed lighthouse pagespeed-insights

在v4和v5中如何计算杠杆浏览器缓存的得分?

有什么区别?

在v4中,我得到这样的结果:

"LeverageBrowserCaching": {
    "localizedRuleName": "Leverage browser caching",
    "ruleImpact": 0.90625,

分数:0.90625

但是在v5中,我得到的结果是这样的:

"uses-long-cache-ttl": {
    "id": "uses-long-cache-ttl",
    "title": "Serve static assets with an efficient cache policy",
    "description": "A long cache lifetime can speed up repeat visits to your page. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/cache-policy).",
    "score": 0.66,
    "scoreDisplayMode": "numeric",
    "displayValue": "21 resources found

得分:0.66

另一个示例:

在第4版中:

"LeverageBrowserCaching": {
    "localizedRuleName": "Leverage browser caching",
    "ruleImpact": 2.7723214285714284,

分数:2.7723214285714284

在v5中:

 "uses-long-cache-ttl": {
    "id": "uses-long-cache-ttl",
    "title": "Serve static assets with an efficient cache policy",
    "description": "A long cache lifetime can speed up repeat visits to your page. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/cache-policy).",
    "score": 0.2,
    "scoreDisplayMode": "numeric",
    "displayValue": "50 resources found",

得分:0.2

相同的网站,但分数不同?我也没有在测试中看到任何模式。谁能阐明该测试和分数与版本4和版本5有何不同?

0 个答案:

没有答案