浏览代码

Add `Accept` to the `Vary` header if AVIF detection is enabled

DarthSim 2 年之前
父节点
当前提交
51aa219315
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      processing_handler.go

+ 1 - 1
processing_handler.go

@@ -44,7 +44,7 @@ func initProcessingHandler() {
 
 	vary := make([]string, 0)
 
-	if config.EnableWebpDetection || config.EnforceWebp {
+	if config.EnableWebpDetection || config.EnforceWebp || config.EnableAvifDetection || config.EnforceAvif {
 		vary = append(vary, "Accept")
 	}