From 88a834ae43f5843a95b163ef45777a8dccbea7b9 Mon Sep 17 00:00:00 2001 From: phdhiren Date: Wed, 25 May 2022 20:11:55 +0530 Subject: [PATCH] Update Cache-Control parameters to no-store (#709) --- .../apigee_edge_teams/src/Controller/TeamAppKeysController.php | 2 +- src/Controller/DeveloperAppKeysController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/apigee_edge_teams/src/Controller/TeamAppKeysController.php b/modules/apigee_edge_teams/src/Controller/TeamAppKeysController.php index 2fa31d8d..b3545b09 100644 --- a/modules/apigee_edge_teams/src/Controller/TeamAppKeysController.php +++ b/modules/apigee_edge_teams/src/Controller/TeamAppKeysController.php @@ -46,7 +46,7 @@ public function teamAppKeys($team, $app): JsonResponse { $payload = $this->getAppKeys($app_storage->load($app_id)); } } - return new JsonResponse($payload); + return new JsonResponse($payload, 200, ['Cache-Control' => 'must-understand, no-store']); } } diff --git a/src/Controller/DeveloperAppKeysController.php b/src/Controller/DeveloperAppKeysController.php index 01e337d5..7c46e1a4 100644 --- a/src/Controller/DeveloperAppKeysController.php +++ b/src/Controller/DeveloperAppKeysController.php @@ -76,7 +76,7 @@ public function developerAppKeys($user, $app): JsonResponse { } } } - return new JsonResponse($payload); + return new JsonResponse($payload, 200, ['Cache-Control' => 'must-understand, no-store']); } /**