Add Accept to the Vary header if AVIF detection is enabled

This commit is contained in:
DarthSim
2023-03-09 18:08:08 +03:00
parent 01fc25623c
commit 51aa219315

View File

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