Service Worker 的 PageSpeed 见解
我们的 CMS 使用图像服务 CDN,需要在图像 URL 中添加一些参数,以便在支持时提供优化格式(webp、avif...)。 这些参数无法直接在 CMS 上添加,因此当我们检测到支持的图像格式时,我们使用 Service Worker 添加它们。
问题是 PageSpeed Insight 测试一直说图像不是“下一代”格式,并且 URL 缺少参数。
有没有什么方法可以强制测试在安装了服务工作人员的情况下重新加载?谷歌通常使用服务工作者来计算性能统计数据吗?
谢谢!
Our CMS is using an image service CDN that requires a few parameters added to the URL of an image to serve optimized formats(webp, avif...) when supported.
The parameters cannot be added directly on the CMS, so we are using a service worker to add them when we detect a supported image format.
The problem is that PageSpeed Insight test keeps saying that the images are not "next-gen" format and the URL is missing the parameters.
Is there any way to force the test to reload with the service worker installed? Is google using service workers in general to calculate performance stats?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论