Spaces:
Sleeping

Igor commited on
Commit
6992d8d
·
unverified ·
1 Parent(s): 82d9c8e

Web: Add cache busting to python file fetches to ensure latest protocol is loaded

Browse files
Files changed (1) hide show
  1. web/index.html +2 -1
web/index.html CHANGED
@@ -130,8 +130,9 @@
130
 
131
  // Fetch our local files and write them to Pyodide FS
132
  const files = ['crypto.py', 'steg.py', 'stealth.py'];
 
133
  for (const f of files) {
134
- const resp = await fetch(`../${f}`);
135
  const text = await resp.text();
136
  pyodide.FS.writeFile(f, text);
137
  }
 
130
 
131
  // Fetch our local files and write them to Pyodide FS
132
  const files = ['crypto.py', 'steg.py', 'stealth.py'];
133
+ const timestamp = new Date().getTime();
134
  for (const f of files) {
135
+ const resp = await fetch(`../${f}?v=${timestamp}`);
136
  const text = await resp.text();
137
  pyodide.FS.writeFile(f, text);
138
  }