From f04c21004ac5c1e6c3a5e79b9ef14a97adadd2b1 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:27:13 -0400 Subject: [PATCH] Bust cached sidebar assets --- AGENTS.md | 1 + .../iframe_forms/iframe-application-form.html | 2 +- .../iframe_forms/iframe-bug-fix-form.html | 2 +- .../iframe-content-appeals-form.html | 2 +- .../iframe_forms/iframe-feedback-form.html | 2 +- .../iframe_forms/iframe-request-form.html | 2 +- config/asset-version.js | 1 + index.html | 33 +++++++++-------- js/index.js | 36 +++++++++++-------- 9 files changed, 47 insertions(+), 34 deletions(-) create mode 100644 config/asset-version.js diff --git a/AGENTS.md b/AGENTS.md index 67df8071..92e24e2c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -70,6 +70,7 @@ Document the run in PR descriptions so QA can cross-reference results. * **Probing:** Lightweight `HEAD`/`GET` requests should back `probeUrl()` so dead URLs can be hidden or flagged without blocking the UI. * **Extensibility:** Future work (live streams, NIP-96 uploads, analytics) should preserve the URL-first strategy and magnet safety rules above. * **Sidebar layering:** Keep the fixed sidebar below every modal and overlay. Respect the `--z-sidebar*` tokens so dialogs always render on top of the navigation. +* **Static asset cache busting:** The CDN aggressively caches `components/sidebar.html` and CSS/JS bundles. Update `config/asset-version.js` and keep the `?v=` query strings in `index.html` (and iframe form shells) in sync whenever you change sidebar markup, scripts, or styles. The fetch helpers in `js/index.js` already append `cache: "no-store"`; reuse them for new partials so desktop collapses ship immediately without waiting on manual cache clears. --- diff --git a/components/iframe_forms/iframe-application-form.html b/components/iframe_forms/iframe-application-form.html index cfe91fa9..0e966844 100644 --- a/components/iframe_forms/iframe-application-form.html +++ b/components/iframe_forms/iframe-application-form.html @@ -4,7 +4,7 @@ bitvid Whitelist Application Form - +