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:
authorToon Claes <toon@gitlab.com>2017-04-05 17:35:29 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 00:50:36 +0300
commit26e24bbe533aaca94a7290509e2d608747b316fa (patch)
tree8e064e3b3f653daeba1a38d1b7872ed22f17f09c /app/controllers/projects/pipelines_controller.rb
parent751dae58e6a536e410e0cf254527fa27e43c154c (diff)
Set the Etag cache polling interval
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r--app/controllers/projects/pipelines_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 43a1abaa662..5de8301f74c 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -29,6 +29,8 @@ class Projects::PipelinesController < Projects::ApplicationController
respond_to do |format|
format.html
format.json do
+ Gitlab::PollingInterval.set_header(response, interval: 10_000)
+
render json: {
pipelines: PipelineSerializer
.new(project: @project, user: @current_user)