Explorar o código

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

DarthSim %!s(int64=2) %!d(string=hai) anos
pai
achega
51aa219315
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")
 	}