From 9283667d2bd1ef490830c003dca7290dd7a2c375 Mon Sep 17 00:00:00 2001 From: Lu Date: Mon, 10 Jul 2017 19:04:55 +0800 Subject: [PATCH] Set no cache when get ip information --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 2fd58a8..94e63d5 100644 --- a/index.js +++ b/index.js @@ -102,6 +102,9 @@ exports.getIpInfo = function(ip) { url: 'http://ip.taobao.com/service/getIpInfo.php', qs: { ip: ip + }, + headers: { + 'Cache-Control': 'no-cache' } }, function(err, res, body) { if (err) {