Add time in request to avoid cache

This commit is contained in:
Benjamin Renard 2014-02-03 00:10:42 +01:00
parent 66b82a89ed
commit 3576aeac12

View file

@ -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') {