no-cache harder

This commit is contained in:
Danny Coates 2019-09-05 13:32:59 -07:00
parent 9ad9c9feb2
commit d5c488196d
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -67,7 +67,10 @@ module.exports = function(app) {
} }
app.use(function(req, res, next) { app.use(function(req, res, next) {
res.set('Pragma', 'no-cache'); res.set('Pragma', 'no-cache');
res.set('Cache-Control', 'no-cache'); res.set(
'Cache-Control',
'private, no-cache, no-store, must-revalidate, max-age=0'
);
next(); next();
}); });
app.use(bodyParser.json()); app.use(bodyParser.json());