mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-06-17 22:37:33 +02:00
Add support for client hints prefixed with Sec-CH-; Remove Viewport-Width header support
This commit is contained in:
@ -49,7 +49,7 @@ func initProcessingHandler() {
|
||||
}
|
||||
|
||||
if config.EnableClientHints {
|
||||
vary = append(vary, "DPR", "Viewport-Width", "Width")
|
||||
vary = append(vary, "Sec-CH-DPR", "DPR", "Sec-CH-Width", "Width")
|
||||
}
|
||||
|
||||
headerVaryValue = strings.Join(vary, ", ")
|
||||
|
Reference in New Issue
Block a user