always refresh .json indexes, even if cached
This commit is contained in:
parent
e56627094e
commit
2e8961b164
2
index.js
2
index.js
|
@ -550,7 +550,7 @@ const displayFile = async (filename, container) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const displayList = async (indexFile, containerId) => {
|
const displayList = async (indexFile, containerId) => {
|
||||||
const response = await fetch(indexFile)
|
const response = await fetch(indexFile, { cache: "no-cache" })
|
||||||
const filenames = await response.json()
|
const filenames = await response.json()
|
||||||
const container = document.getElementById(containerId)
|
const container = document.getElementById(containerId)
|
||||||
for (const filename of filenames) {
|
for (const filename of filenames) {
|
||||||
|
|
Loading…
Reference in a new issue