mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
Dont cache auth
This commit is contained in:
1 parent
5037af9100
commit
ca1ce9ba76
1 file changed
+4
@@ -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