X-Git-Url: https://git.ladys.computer/x_status_git/blobdiff_plain/ef3a7dd331debfcd8d511e569984a8384cc70a56..5d3d36f31fdfd8ad151fa2b2c4ca0f6e1301db8e:/status.html

diff --git a/status.html b/status.html
index 1142555..e1c68ad 100644
--- a/status.html
+++ b/status.html
@@ -15,8 +15,13 @@ footer small{ Font-Size: Inherit; Font-Style: Italic }
 <BODY>
 <SCRIPT Type=module>
 const parser = new DOMParser
-fetch(`${new URL(".", location).toString().slice(0, -1)}.jsonld`)
+const index = `${new URL(".", location).toString().slice(0, -1)}.jsonld`
+fetch(index)
 .then($ => $.json())
+.then(meta => {
+  const { items } = meta
+  if (items.find($ => new URL($["@id"]).pathname === location.pathname)) return meta
+  else return fetch(index, { cache: "reload" }).then($ => $.json()) })
 .then(meta => {
   const { items, subject } = meta
   const n = items.findIndex($ => new URL($["@id"]).pathname === location.pathname)