diff --git a/src/routes/meta.js b/src/routes/meta.js index 76cefadf0e..a7af01721e 100644 --- a/src/routes/meta.js +++ b/src/routes/meta.js @@ -27,6 +27,10 @@ function sendStylesheet(req, res, next) { res.type('text/css').send(200, meta.css.cache); } +function sendACPStylesheet(req, res, next) { + res.type('text/css').send(200, meta.css.acpCache); +} + function setupPluginSourceMapping(app) { /* These mappings are utilised by the source map file, as client-side @@ -48,6 +52,7 @@ function setupPluginSourceMapping(app) { module.exports = function(app, middleware, controllers) { app.get('/stylesheet.css', middleware.addExpiresHeaders, sendStylesheet); + app.get('/admin.css', middleware.addExpiresHeaders, sendACPStylesheet); app.get('/nodebb.min.js', middleware.addExpiresHeaders, sendMinifiedJS); app.get('/sitemap.xml', controllers.sitemap); app.get('/robots.txt', controllers.robots); diff --git a/src/views/admin/header.tpl b/src/views/admin/header.tpl index b5753fe759..58a598b918 100644 --- a/src/views/admin/header.tpl +++ b/src/views/admin/header.tpl @@ -6,7 +6,7 @@ - +