fix: prevent stale admin UI assets
This commit is contained in:
+6
-2
@@ -84,8 +84,12 @@ async function adminRoutes(fastify) {
|
||||
root: assetsDir,
|
||||
prefix: '/admin/assets/',
|
||||
decorateReply: false,
|
||||
cacheControl: true,
|
||||
maxAge: 0,
|
||||
cacheControl: false,
|
||||
etag: false,
|
||||
lastModified: false,
|
||||
setHeaders(res) {
|
||||
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate');
|
||||
},
|
||||
});
|
||||
|
||||
// top-level entry — the autonomy control room is the primary product surface
|
||||
|
||||
Reference in New Issue
Block a user