mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
moving cache buster to production builds only (*facepalm* I'm bad at this)
This commit is contained in:
@@ -123,7 +123,6 @@ var path = require('path'),
|
||||
if (global.env !== 'development') {
|
||||
app.enable('cache');
|
||||
app.enable('minification');
|
||||
}
|
||||
|
||||
// Configure cache-buster timestamp
|
||||
require('child_process').exec('git describe --tags', {
|
||||
@@ -141,6 +140,7 @@ var path = require('path'),
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Middlewares
|
||||
app.configure(function() {
|
||||
|
||||
Reference in New Issue
Block a user