1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-10-30 23:08:02 +02:00

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

@@ -2,6 +2,7 @@
## [Unreleased]
### Fixed
- Fix the `Vary` header value when `IMGPROXY_AUTO_JXL` or `IMGPROXY_ENFORCE_JXL` configs are set to `true`.
- (pro) Fix generating thumbnails for VP9 videos with high bit depth.
- (pro) Fix `IMGPROXY_CUSTOM_RESPONSE_HEADERS` and `IMGPROXY_RESPONSE_HEADERS_PASSTHROUGH` configs behavior when the `raw` processing option is used.

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