mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
Dont cache auth
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user