Changed User View and Ticket View

This commit is contained in:
Honey committed 2026-02-27 21:45:10 +01:00
1 parent 3d9f4dfda0
commit cf8b470a20
6 files changed
+43 -17

No files matched your search

+6
View File
@@ -28,6 +28,11 @@ const APP_VERSION = pkg.version || '0.0.0';
app.use(cors());
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
// Never cache version.js — ensures auto cache-busting works
app.get('/version.js', (req, res, next) => {
res.set('Cache-Control', 'no-store, no-cache, must-revalidate');
next();
});
app.use(express.static(path.join(__dirname, 'public')));
app.use('/assets', express.static(path.join(__dirname, 'assets')));
@@ -304,6 +309,7 @@ app.get('/api/categories', (_req, res) => {
// GET app version
app.get('/api/version', (_req, res) => {
res.set('Cache-Control', 'no-store');
res.json({ version: APP_VERSION });
});