Skip to content

Commit 5bc0ee7

Browse files
committed
web: don't use cache when fetching registry
1 parent fb0e6d5 commit 5bc0ee7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

web/src/App.svelte

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
let trees: NodeT[] = []
1010
1111
onMount(async () => {
12-
const links = await fetch('./pdf/registry.txt')
13-
.then(res => {
12+
const links = await fetch('./pdf/registry.txt', {
13+
headers: {
14+
'Cache-Control': 'no-cache'
15+
}
16+
}).then(res => {
1417
if (res.ok) return res.text()
1518
else throw new Error(`Can't download registry.txt`)
1619
})

0 commit comments

Comments
 (0)