Skip to content

Commit 8fa8076

Browse files
committed
cleanup
1 parent 0f0ce27 commit 8fa8076

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

services/static-webserver/client/scripts/post-compile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def _get_output_file_paths(filename="index.html"):
5555

5656
def add_no_cache_param(vcs_ref_client):
5757
if not vcs_ref_client:
58-
random.seed(5)
5958
vcs_ref_client = str(random.random())
6059

6160
index_file_paths = _get_output_file_paths("index.html")
@@ -64,7 +63,7 @@ def add_no_cache_param(vcs_ref_client):
6463
continue
6564
with open(index_file_path) as index_file:
6665
data = index_file.read()
67-
data = data.replace("vcs_ref_client", vcs_ref_client)
66+
data = data.replace("${boot_params}", "nocache=" + vcs_ref_client)
6867
with open(index_file_path, "w") as file:
6968
print(f"Updating vcs_ref_client: {index_file_path}")
7069
file.write(data)

services/static-webserver/client/source/boot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</head>
6868
<body>
6969
${preBootJs}
70-
<script type="text/javascript" src="${appPath}boot.js?nocache=vcs_ref_client"></script>
70+
<script type="text/javascript" src="${appPath}boot.js?${boot_params}"></script>
7171
</body>
7272
<script>
7373
window.markerConfig = {

0 commit comments

Comments
 (0)