瀏覽代碼

add missing cache bust on log file

Brian Gough 10 年之前
父節點
當前提交
4e252976c7
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 3 - 0
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