← back to Commercialrealestate
Serve col-resize.js via dedicated no-cache route (revalidate-every-load) ahead of static mount
db7a5dab33ce3321ea01773b6abe04d590fe8c94 · 2026-07-12 11:21:28 -0700 · Steve
Files touched
Diff
commit db7a5dab33ce3321ea01773b6abe04d590fe8c94
Author: Steve <steve@designerwallcoverings.com>
Date: Sun Jul 12 11:21:28 2026 -0700
Serve col-resize.js via dedicated no-cache route (revalidate-every-load) ahead of static mount
---
scripts/serve.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/serve.js b/scripts/serve.js
index 018624d..c0d9346 100644
--- a/scripts/serve.js
+++ b/scripts/serve.js
@@ -1046,6 +1046,14 @@ app.get(/^\/[a-zA-Z0-9_-]+$/, (req, res, next) => {
next();
});
+// Serve col-resize.js with revalidate-every-load caching (ahead of the static
+// mount) so edits to it land on a normal refresh — no hard-refresh needed.
+app.get('/col-resize.js', (req, res) => {
+ res.set('Cache-Control', 'no-cache');
+ res.type('application/javascript');
+ res.sendFile(path.join(ROOT, 'public', 'col-resize.js'));
+});
+
app.use('/data', express.static(path.join(ROOT, 'data')));
app.use('/', express.static(path.join(ROOT, 'public')));
← c102c07 auto-save: 2026-07-12T11:17:54 (2 files) — data/alerts-state
·
back to Commercialrealestate
·
broker-email-finder: hard per-broker timeout so a single hun f93ac06 →