From 4e252976c7448e61458d59552b9e2fd7e97cdcb6 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 20 Jul 2016 09:54:19 +0100 Subject: [PATCH] add missing cache bust on log file --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index dbdd137b57..f2e5da5f26 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -194,6 +194,9 @@ define [ opts.url = "/project/#{$scope.project_id}/build/#{file.build}/output/#{name}" else opts.url = "/project/#{$scope.project_id}/output/#{name}" + # check if we need to bust cache (build id is unique so don't need it in that case) + if not file?.build? + opts.params.cache_bust = "#{Date.now()}" return $http(opts) # accumulate the log entries