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
This commit is contained in:
Jon Atkins 2013-11-11 05:51:42 +00:00
parent 17fda5fc0b
commit 72610aecbd

View File

@ -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