From 72610aecbd34e245c759acc6db71b45da110cb0f Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 11 Nov 2013 05:51:42 +0000 Subject: [PATCH] update check plugin: include ts=TIMESTAMP parameter in URL, to ensure it's never the same twice on a device This ensures that the aggressive caching used on mobile won't be a problem, and possibly helps avoid cache issues on desktop too fix #637 --- plugins/update-check.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/update-check.user.js b/plugins/update-check.user.js index 11e0ceec..3dce7390 100644 --- a/plugins/update-check.user.js +++ b/plugins/update-check.user.js @@ -29,7 +29,8 @@ window.plugin.updateCheck.getUrl = function(callback) { var url = 'http://iitc.jonatkins.com/versioncheck.php' + '?build=@@BUILDNAME@@' - + '&mobile='+((typeof android !== 'undefined' && android)?'1':'0'); + + '&mobile='+((typeof android !== 'undefined' && android)?'1':'0') + + '&ts='+Date.now(); // append timestamp - ensures no cacheing of old data, even on mobile with the aggressive cache code if (callback) { url = url + '&callback='+callback