mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
don't cache index
This commit is contained in:
@@ -71,7 +71,10 @@ export class StaticModule implements OnModuleInit {
|
|||||||
|
|
||||||
app.get(RENDER_PATH, (req: any, res: any) => {
|
app.get(RENDER_PATH, (req: any, res: any) => {
|
||||||
const stream = fs.createReadStream(indexFilePath);
|
const stream = fs.createReadStream(indexFilePath);
|
||||||
res.type('text/html').send(stream);
|
res
|
||||||
|
.header('Cache-Control', 'no-cache, no-store, must-revalidate')
|
||||||
|
.type('text/html')
|
||||||
|
.send(stream);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user