We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d7910 commit 7c72425Copy full SHA for 7c72425
index.js
@@ -36,6 +36,7 @@ function runner (opts) {
36
if (opts.input === 'javascript') {
37
if (/^\/bundle\.js/.test(req.url)) {
38
res.setHeader('content-type', 'application/javascript');
39
+ res.setHeader('cache-control', 'no-cache');
40
bundle.createReadStream().pipe(res);
41
return;
42
}
static/index.html
@@ -2,14 +2,9 @@
2
<html>
3
<head>
4
<meta charset="utf-8">
5
- <script src="/reporter.js"></script>
6
</head>
7
<body>
8
- <script>
9
- document.write(
10
- '<' + 'script src="/bundle.js?' + Math.random().toString(16).slice(2) +
11
- '"><' + '/script' + '>'
12
- )
13
- </script>
+ <script src="/reporter.js"></script>
+ <script src="/bundle.js"></script>
14
</body>
15
</html>
0 commit comments