diff --git a/apps/status/src/index.ts b/apps/status/src/index.ts index 72ba53b..fa81bfa 100644 --- a/apps/status/src/index.ts +++ b/apps/status/src/index.ts @@ -1,6 +1,7 @@ import { Elysia } from "elysia"; import { Eta } from "eta"; import { resolve } from "path"; +import { createHash } from "crypto"; import sql from "./db"; import { loadStatusPage, loadPagePayload, loadMonitorDetail, type Window } from "./data"; import { renderRss } from "./render/rss"; @@ -18,6 +19,12 @@ const eta = new Eta({ views: resolve(import.meta.dir, "./views"), cache: true, d const PUBLIC_BASE = process.env.STATUS_BASE_URL ?? "https://status.pingql.com"; +// Hash the static expand.js so the URL changes whenever its bytes change. +// Used as a cache-busting query string on the + + <% } %> <% if (page.auto_refresh_s > 0) { %>