Dont cache auth

This commit is contained in:
Chi Vinh Le
2017-10-24 17:23:10 +02:00
parent 5037af9100
commit ca1ce9ba76
+4
View File
@@ -12,6 +12,10 @@ router.get('/', (req, res, next) => {
return;
}
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
res.header('Expires', '-1');
res.header('Pragma', 'no-cache');
// Send back the user object.
res.json({user: req.user});
});