Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-07 15:11:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-07 15:11:20 +0300
commit8e81ce50767bd5c785072c2487ffb61fe075977c (patch)
tree87fe3686b23f2581843a068d0278ee4018931c3f /app/controllers
parent0125f11d6bf7af5817dce9d87a116e2ed6bd1917 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/jwks_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/jwks_controller.rb b/app/controllers/jwks_controller.rb
index d3a8d3dafea..2e030cf46c4 100644
--- a/app/controllers/jwks_controller.rb
+++ b/app/controllers/jwks_controller.rb
@@ -2,6 +2,10 @@
class JwksController < Doorkeeper::OpenidConnect::DiscoveryController
def index
+ if ::Feature.enabled?(:cache_control_headers_for_openid_jwks)
+ expires_in 24.hours, public: true, must_revalidate: true, 'no-transform': true
+ end
+
render json: { keys: payload }
end