mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Fix Vary header when JPEG XL supoprt detection is enabled
This commit is contained in:
@@ -48,7 +48,12 @@ func initProcessingHandler() {
|
||||
|
||||
vary := make([]string, 0)
|
||||
|
||||
if config.AutoWebp || config.EnforceWebp || config.AutoAvif || config.EnforceAvif {
|
||||
if config.AutoWebp ||
|
||||
config.EnforceWebp ||
|
||||
config.AutoAvif ||
|
||||
config.EnforceAvif ||
|
||||
config.AutoJxl ||
|
||||
config.EnforceJxl {
|
||||
vary = append(vary, "Accept")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user