Skip to content

Commit

Permalink
Merge pull request #37 from PDOK/vary-lang
Browse files Browse the repository at this point in the history
fix(http): Add Vary header to allow clients to take content negotiation into account when caching - also take language into account
  • Loading branch information
rkettelerij authored Sep 30, 2024
2 parents 7b940a2 + 3380389 commit 8e330d0
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",
"Vary": "Accept, Accept-Encoding, Accept-Language",
},
},
}
Expand Down

0 comments on commit 8e330d0

Please sign in to comment.