mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 12:12:40 +02:00
Add Accept
to the Vary
header if AVIF detection is enabled
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user