Fix Vary header when JPEG XL supoprt detection is enabled

This commit is contained in:
DarthSim
2025-07-31 23:08:01 +03:00
parent 86b727b706
commit 8967bf7f82
2 changed files with 7 additions and 1 deletions

View File

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