no caching for chathistory
This commit is contained in:
parent
bf9ab51350
commit
709fd3af9f
|
@ -11,6 +11,12 @@ import chatProvider from '../../core/ChatProvider';
|
|||
|
||||
async function chatHistory(req: Request, res: Response) {
|
||||
let { cid, limit } = req.query;
|
||||
res.set({
|
||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
||||
Pragma: 'no-cache',
|
||||
Expires: '0',
|
||||
});
|
||||
|
||||
if (!cid || !limit) {
|
||||
res.status(400);
|
||||
res.json({
|
||||
|
|
Loading…
Reference in New Issue
Block a user