如果Chrome浏览器使用WebP [英] If Chrome, use WebP

查看:445
本文介绍了如果Chrome浏览器使用WebP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为目前只有Chrome和Opera支持WebP,所以我想知道我是否可以定位这两个特定的浏览器并重定向它们以获取我的网站的另一个版本,这样我可以更快地优化我的网站下载速度?

b
$ b

谢谢。

解决方案

现在,thumbor支持自动webp转换:

https://github.com/thumbor/thumbor/wiki/Configuration#auto_webp



您仍然必须配置负载平衡器以通过webp接受标头,但除此之外,thumbor会为您处理所有事情。



希望有帮助!


Because currently only Chrome and Opera supports WebP, I was wondering if I could target those two particular browsers and redirect them to fetch another version of my website so I can help optimize my site downloading speed more faster?

Thanks.

解决方案

For a while now, thumbor supports automatic webp conversion:

https://github.com/thumbor/thumbor/wiki/Configuration#auto_webp

You'll still have to configure the load balancer to pass the webp accepts header, but other than that, thumbor will take care of everything for you.

Hope that helps!

这篇关于如果Chrome浏览器使用WebP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆