Skip to content

Commit

Permalink
Merge pull request #11646 from camptocamp/backport/11643-to-2.7
Browse files Browse the repository at this point in the history
[Backport 2.7] Fix small cache poisoning
  • Loading branch information
sbrunner authored Jan 15, 2025
2 parents 8aa3b6d + d64455f commit 34ed71c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geoportal/c2cgeoportal_geoportal/views/dynamic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2021, Camptocamp SA
# Copyright (c) 2018-2025, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -121,6 +121,7 @@ def _interface(

@view_config(route_name="dynamic", renderer="json") # type: ignore
def dynamic(self) -> Dict[str, Any]:
self.request.response.headers["Vary"] = "Host"
original_interface_name = self.request.params.get("interface")
interface_name = self.request.get_organization_interface(original_interface_name)

Expand Down

0 comments on commit 34ed71c

Please sign in to comment.