Skip to content

Commit a44e2c6

Browse files
committed
force_no_cache
1 parent dd18d34 commit a44e2c6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,20 @@ def update_apps_metadata():
3737
file.write(data)
3838

3939

40+
def force_no_cache():
41+
dirname = os.path.dirname(__file__)
42+
for output_folder in output_folders:
43+
filename = os.path.join(dirname, '..', output_folder, "osparc", "boot.js")
44+
if not os.path.isfile(filename):
45+
continue
46+
with open(filename, "r") as file:
47+
data = file.read()
48+
data = data.replace("addNoCacheParam : false", "addNoCacheParam : true")
49+
with open(filename, "w") as file:
50+
print(f"Updating addNoCacheParam: {filename}")
51+
file.write(data)
52+
53+
4054
if __name__ == "__main__":
4155
update_apps_metadata()
56+
force_no_cache()

0 commit comments

Comments
 (0)