diff --git a/README.md b/README.md index 50e7888..f645f1c 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,11 @@ and native GitHub squash auto-merge. Sensitive changes remain manual-only. [Setup, required checks, trust assumptions and first-run procedure](docs/guarded-auto-merge.md) include the required OpenAI key, branch protection and downstream deployment-event limitation. Repository settings and production are not changed by installing it. + +### Shared asset cache versions + +After changing `script.js` or `style.css`, run `npm run assets:version` and commit +the updated HTML files with the asset changes. Each page uses a content-derived +query parameter so browsers and Cloudflare request the matching release assets. +The test suite rejects missing or stale versions. This does not change the +protected deployment process or require a Cloudflare cache purge. diff --git a/cancel.html b/cancel.html index 94c7d12..1894b9c 100644 --- a/cancel.html +++ b/cancel.html @@ -11,7 +11,7 @@ - + diff --git a/computer-help-henderson.html b/computer-help-henderson.html index f18a60a..67c6880 100644 --- a/computer-help-henderson.html +++ b/computer-help-henderson.html @@ -13,7 +13,7 @@ - + @@ -138,6 +138,6 @@ - + diff --git a/custom-pc-builds-henderson.html b/custom-pc-builds-henderson.html index 30d5954..7d093a9 100644 --- a/custom-pc-builds-henderson.html +++ b/custom-pc-builds-henderson.html @@ -13,7 +13,7 @@ - + @@ -138,6 +138,6 @@ - + diff --git a/index.html b/index.html index 807ebea..3d226ad 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - + @@ -669,6 +669,6 @@ - + diff --git a/package.json b/package.json index 2959e0a..145e6cb 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Dex Tech - Henderson NV Tech Support Website", "main": "server.js", "scripts": { + "assets:version": "node scripts/version-static-assets.js", "test": "node --test test/*.test.js", "start": "node server.js", "dev": "node --watch server.js", diff --git a/privacy.html b/privacy.html index fbd1a0d..903ef33 100644 --- a/privacy.html +++ b/privacy.html @@ -9,7 +9,7 @@ - +