Prechádzať zdrojové kódy

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

DarthSim 2 rokov pred
rodič
commit
51aa219315
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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")
 	}