summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorWu Cheng-Han2016-09-18 16:23:56 +0800
committerWu Cheng-Han2016-09-18 16:23:56 +0800
commit0470a266fd4965aa3de1584dad8f7042c6694dc1 (patch)
tree3981a570a020df3cdad65676393f81c21cda75df /app.js
parent4421c8ede7e03fba4b4fdc44eb87ca3f3842f46d (diff)
Update to prevent caching and crawling status
Diffstat (limited to '')
-rw-r--r--app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.js b/app.js
index 683d3139..1d3c7a94 100644
--- a/app.js
+++ b/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);
});
});