File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
services/static-webserver/client Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ def _get_output_file_paths(filename="index.html"):
5555
5656def 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 )
Original file line number Diff line number Diff line change 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 = {
You can’t perform that action at this time.
0 commit comments