diff --git a/html/early.js b/html/early.js index 4b51e48..ca690b3 100644 --- a/html/early.js +++ b/html/early.js @@ -124,6 +124,19 @@ function lDateString(date) { return string; } +// get configuration json files, will be used in initialize function +let get_receiver_defer = $.ajax({ url: 'data/receiver.json', + cache: false, + dataType: 'json', + timeout: 5000, +}); +let test_chunk_defer = $.ajax({ + url:'chunks/chunks.json', + cache: false, + dataType: 'json', + timeout: 4000, +}); + if (!heatmap) { heatmapDefer.resolve(); @@ -171,19 +184,6 @@ if (!heatmap) { } } -// get configuration json files, will be used in initialize function -let get_receiver_defer = $.ajax({ url: 'data/receiver.json', - cache: false, - dataType: 'json', - timeout: 5000, -}); -let test_chunk_defer = $.ajax({ - url:'chunks/chunks.json', - cache: false, - dataType: 'json', - timeout: 4000, -}); - if (uuid != null) { get_receiver_defer = null; receiverJson = null; diff --git a/nginx.conf b/nginx.conf index a99fe31..663afb6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,11 +21,6 @@ location /INSTANCE/data/ { add_header Cache-Control "public, max-age=0"; add_header Content-Encoding "gzip"; } - location /INSTANCE/data/heatmap/ { - gzip off; - add_header Cache-Control "public, max-age=5"; - add_header Content-Encoding "gzip"; - } } location /INSTANCE/globe_history/ {