Skip to content

Commit

Permalink
fix(http): Add Vary header to allow clients to take content negotiati…
Browse files Browse the repository at this point in the history
…on into account when caching - take language cookie into account.
  • Loading branch information
rkettelerij committed Sep 30, 2024
1 parent 8e330d0 commit ed5eea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/ogcapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ func (r *OGCAPIReconciler) mutateHeadersMiddleware(obj metav1.Object, middleware
// Other headers
CustomResponseHeaders: map[string]string{
"Cache-Control": "public, max-age=3600, no-transform",
"Vary": "Accept, Accept-Encoding, Accept-Language",
"Vary": "Cookie, Accept, Accept-Encoding, Accept-Language",
},
},
}
Expand Down

0 comments on commit ed5eea0

Please sign in to comment.