소스 검색

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")
 	}