Skip to content

Commit 80e1049

Browse files
committed
fix: add cache buster to passed endpoint
1 parent 186858c commit 80e1049

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

index.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>eodash preview</title>
7-
8-
</head>
9-
<body>
10-
<iframe style="height: 100dvh;width: 100%;" src="http://localhost:5173/" frameborder="0"></iframe>
11-
</body>
12-
</html>
7+
</head>
8+
<body>
9+
<iframe
10+
style="height: 100dvh; width: 100%"
11+
src="http://localhost:5173/"
12+
frameborder="0"
13+
></iframe>
14+
</body>
15+
</html>

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ window.addEventListener("message", (event) => {
206206
console.log("stacEndpoint from parent:", stacEndpoint);
207207
if (stacEndpoint && stacEndpoint.endsWith("catalog.json")) {
208208
const urlParams = new URLSearchParams(window.location.search);
209-
urlParams.set("stacEndpoint", stacEndpoint);
209+
urlParams.set("stacEndpoint", stacEndpoint + "?t=" + Date.now());
210210
window.history.replaceState({}, "", `?${urlParams}`);
211211
window.location.reload();
212212
console.log(

0 commit comments

Comments
 (0)