summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent4421c8ede7e03fba4b4fdc44eb87ca3f3842f46d (diff)
Update to prevent caching and crawling status
Diffstat (limited to '')
-rwxr-xr-xlib/response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js
index df8abfd3..796f951f 100755
--- a/lib/response.js
+++ b/lib/response.js
@@ -274,7 +274,7 @@ function actionInfo(req, res, note) {
'Access-Control-Allow-Origin': '*', //allow CORS as API
'Access-Control-Allow-Headers': 'Range',
'Access-Control-Expose-Headers': 'Cache-Control, Content-Encoding, Content-Range',
- 'Cache-Control': 'private',
+ 'Cache-Control': 'private', // only cache by client
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
});
res.send(data);