Commit ede7c30
committed
Add cache-busting content hash to JS filename
The scratch directory webpack config now dynamically injects a script
tag and includes a content hash in the scratch.js filename, e.g.
scratch.dc000fc4af51426aea0c.js. We're hoping that this will bust the
Cloudflare cache whenever the source, `scratch/src/index.jsx`, changes.1 parent b422e06 commit ede7c30
File tree
5 files changed
+271
-11
lines changed- scratch
- src
5 files changed
+271
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
0 commit comments