Skip to content

Commit

Permalink
Fix small cache poisoning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 15, 2025
1 parent 54398d4 commit 7818025
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,6 +1,6 @@
# -*- coding: utf-8 -*-

# 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 @@ -110,6 +110,7 @@ def _interface(self, interface_config, interface_name, original_interface_name,

@view_config(route_name="dynamic", renderer="json")
def dynamic(self):
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 7818025

Please sign in to comment.