mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Update to prevent caching and crawling status
This commit is contained in:
parent
4421c8ede7
commit
0470a266fd
2 changed files with 5 additions and 1 deletions
4
app.js
4
app.js
|
@ -198,6 +198,10 @@ app.get("/500", function (req, res) {
|
|||
//get status
|
||||
app.get("/status", function (req, res, next) {
|
||||
realtime.getStatus(function (data) {
|
||||
res.set({
|
||||
'Cache-Control': 'private', // only cache by client
|
||||
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
|
||||
});
|
||||
res.send(data);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue