From 84e609c48f5fe1911ee3f100e65680bcf06c3ceb Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 8 Apr 2026 16:46:22 +0400 Subject: [PATCH] fix --- apps/status/src/index.ts | 17 +++- apps/status/src/static/expand.js | 154 +++++++++++++++++++++++++++++++ apps/status/src/views/page.ejs | 113 +---------------------- 3 files changed, 172 insertions(+), 112 deletions(-) create mode 100644 apps/status/src/static/expand.js 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) { %>