mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add missing cache bust on log file
This commit is contained in:
parent
13d6448ab8
commit
4e252976c7
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ define [
|
||||||
opts.url = "/project/#{$scope.project_id}/build/#{file.build}/output/#{name}"
|
opts.url = "/project/#{$scope.project_id}/build/#{file.build}/output/#{name}"
|
||||||
else
|
else
|
||||||
opts.url = "/project/#{$scope.project_id}/output/#{name}"
|
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)
|
return $http(opts)
|
||||||
|
|
||||||
# accumulate the log entries
|
# accumulate the log entries
|
||||||
|
|
Loading…
Reference in a new issue