Merge master

This commit is contained in:
Noman 2018-07-03 02:47:34 -04:00
commit f47f5065e7
No known key found for this signature in database
GPG Key ID: ACD1C4A99857525C
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,10 @@ router.get('/', function (req, res, next) {
var userAgent = req.headers['user-agent']; var userAgent = req.headers['user-agent'];
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
res.header('Expires', '-1');
res.header('Pragma', 'no-cache');
if (isAndroid(userAgent)) { if (isAndroid(userAgent)) {
return res.redirect("https://play.google.com/store/apps/details?id=im.status.ethereum"); return res.redirect("https://play.google.com/store/apps/details?id=im.status.ethereum");
} else if (isIOS(userAgent)) { } else if (isIOS(userAgent)) {

View File

@ -134,7 +134,7 @@ header_contains() {
} }
_get_header() { _get_header() {
grep -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r' grep -i -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r'
} }
# debug # debug