From 3576aeac12dc377b0f1a34afbf85d4c6871b1aae Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 3 Feb 2014 00:10:42 +0100 Subject: [PATCH] Add time in request to avoid cache --- inc/myco_objects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/myco_objects.js b/inc/myco_objects.js index 159baf1..91265a5 100644 --- a/inc/myco_objects.js +++ b/inc/myco_objects.js @@ -424,7 +424,7 @@ function SyncServer() { try { jQuery.getJSON( this.url+'/login', - {'email':email,'password':password}, + {'email':email,'password':password, 'time': new Date().getTime()}, function(data, textStatus) { console.log(data); if (textStatus=='success') { @@ -455,7 +455,7 @@ function SyncServer() { try { jQuery.getJSON( this.url+'/subscribe', - {'email':email,'name': name,'password':password}, + {'email':email,'name': name,'password':password, 'time': new Date().getTime()}, function(data, textStatus) { console.log(data); if (textStatus=='success') {