mirror of
https://github.com/requarks/wiki.git
synced 2024-07-04 11:23:05 -05:00
fix: set no-store cache control on jwt renew response
This commit is contained in:
parent
1238d614e1
commit
904260fd44
|
@ -156,6 +156,9 @@ module.exports = {
|
|||
} else {
|
||||
res.cookie('jwt', newToken.token, { expires: DateTime.utc().plus({ days: 365 }).toJSDate() })
|
||||
}
|
||||
|
||||
// Avoid caching this response
|
||||
res.set('Cache-Control', 'no-store')
|
||||
} catch (errc) {
|
||||
WIKI.logger.warn(errc)
|
||||
return next()
|
||||
|
|
Loading…
Reference in New Issue
Block a user