Skip to content

Commit 3e49527

Browse files
committed
add cache-bust to iframe
1 parent dbe2544 commit 3e49527

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎app/index.html‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
<body ontouchstart>
1919
<div class="app"></div>
2020
<script src="./js/app.js"></script>
21-
<iframe src="sw.html" style="display: none"></iframe>
21+
<script>
22+
var frame = document.createElement('iframe');
23+
frame.style.display = "none";
24+
frame.src = 'sw.html?' + Date.now();
25+
document.body.appendChild(frame);
26+
</script>
2227
</body>
2328
</html>

0 commit comments

Comments
 (0)