mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-06 01:50:26 +08:00
支持自动转换图像文件为WebP
This commit is contained in:
@@ -338,6 +338,11 @@ func (this *HTTPRequest) configureWeb(web *serverconfigs.HTTPWebConfig, isTop bo
|
||||
this.web.Compression = web.Compression
|
||||
}
|
||||
|
||||
// webp
|
||||
if web.WebP != nil && (web.WebP.IsPrior || isTop) {
|
||||
this.web.WebP = web.WebP
|
||||
}
|
||||
|
||||
// cache
|
||||
if web.Cache != nil && (web.Cache.IsPrior || isTop) {
|
||||
this.web.Cache = web.Cache
|
||||
|
||||
Reference in New Issue
Block a user