Explorar el Código

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

DarthSim hace 2 años
padre
commit
51aa219315
Se han modificado 1 ficheros con 1 adiciones y 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")
 	}