diff --git a/src/AppBundle/Controller/MenuController.php b/src/AppBundle/Controller/MenuController.php index 73ef1433..1b8aa489 100644 --- a/src/AppBundle/Controller/MenuController.php +++ b/src/AppBundle/Controller/MenuController.php @@ -72,11 +72,14 @@ public function getChildNodesAction($template, $pathString = null) $pathArray = $pathString ? explode("/", $pathString) : []; + $response = new Response(); + $response->setVary('X-User-Hash'); + return $this->templating->renderResponse( $template, [ - 'menuItems' => $menuItems, - 'pathArray' => $pathArray, - ], new Response() + 'menuItems' => $menuItems, + 'pathArray' => $pathArray, + ], $response ); } }