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:
parent
17fda5fc0b
commit
72610aecbd
@ -29,7 +29,8 @@ window.plugin.updateCheck.getUrl = function(callback) {
|
|||||||
|
|
||||||
var url = 'http://iitc.jonatkins.com/versioncheck.php'
|
var url = 'http://iitc.jonatkins.com/versioncheck.php'
|
||||||
+ '?build=@@BUILDNAME@@'
|
+ '?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) {
|
if (callback) {
|
||||||
url = url + '&callback='+callback
|
url = url + '&callback='+callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user