Don't cache receiver.json as it may change more frequently now (history size).
This commit is contained in:
parent
971e5754ff
commit
5cbe5d909b
|
@ -170,7 +170,11 @@ function initialize() {
|
||||||
|
|
||||||
// Get receiver metadata, reconfigure using it, then continue
|
// Get receiver metadata, reconfigure using it, then continue
|
||||||
// with initialization
|
// with initialization
|
||||||
$.getJSON('data/receiver.json')
|
$.ajax({ url: 'data/receiver.json',
|
||||||
|
timeout: 5000,
|
||||||
|
cache: false,
|
||||||
|
dataType: 'json' })
|
||||||
|
|
||||||
.done(function(data) {
|
.done(function(data) {
|
||||||
if (typeof data.lat !== "undefined") {
|
if (typeof data.lat !== "undefined") {
|
||||||
SiteShow = true;
|
SiteShow = true;
|
||||||
|
@ -184,6 +188,7 @@ function initialize() {
|
||||||
RefreshInterval = data.refresh;
|
RefreshInterval = data.refresh;
|
||||||
PositionHistorySize = data.history;
|
PositionHistorySize = data.history;
|
||||||
})
|
})
|
||||||
|
|
||||||
.always(function() {
|
.always(function() {
|
||||||
initialize_map();
|
initialize_map();
|
||||||
start_load_history();
|
start_load_history();
|
||||||
|
|
Loading…
Reference in a new issue