使用编码 URL 参数总是获得较低的性能分数

Always Got Lower Performance Score with Encoded URL Parameter

任何人都可以指出为什么 google-page-speed api 使用编码的 url 参数提供较低的性能得分?

我用编码的 url 参数和未编码的 url 参数调用了 api 100 次,结果如下:

编码URL参数:

正常URL参数:

其他参数完全相同

感谢您的回答

你得到不同结果的原因是你实际上最终测试了两个不同的 URLs

https://m.ctrip.com/webapp/flight/schedule/detail.html?hideAddTrip=true&isHideNavBar=YES&navBarStyle=gray&flightNo=NH7018&queryDate=2019-11-10&dcode=NRT&acode=LAX

https://m.ctrip.com/webapp/flight/schedule/detail.html?hideAddTrip=true

如果不 URL 编码您对 PSI 的请求,您将在 &.

之后丢失所有内容

我不确定为什么会出现这种情况,因为我预计会出现相反的行为。