diff --git a/html/script.js b/html/script.js index 742527b..6aa4fb7 100644 --- a/html/script.js +++ b/html/script.js @@ -2152,14 +2152,14 @@ function selectPlaneByHex(hex, options) { if (!options.noFetch && globeIndex && hex) { - var URL1 = 'data/traces/'+ hex.slice(-2) + '/trace_recent_' + hex + '.json.gz'; - var URL2 = 'data/traces/'+ hex.slice(-2) + '/trace_full_' + hex + '.json.gz'; + var URL1 = 'data/traces/'+ hex.slice(-2) + '/trace_recent_' + hex + '.json'; + var URL2 = 'data/traces/'+ hex.slice(-2) + '/trace_full_' + hex + '.json'; //console.log('Requesting trace: ' + hex); if (showTrace) { URL1 = null; - URL2 = 'globe_history/' + traceDateString + '/traces/' + hex.slice(-2) + '/trace_full_' + hex + '.json.gz'; + URL2 = 'globe_history/' + traceDateString + '/traces/' + hex.slice(-2) + '/trace_full_' + hex + '.json'; } if (newPlane && (showTrace || showTraceExit)) { SelectedPlane = oldPlane = null; diff --git a/nginx.conf b/nginx.conf index e582123..42e865b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,14 +6,14 @@ location /INSTANCE/data/ { } location /INSTANCE/data/traces/ { location ~ trace_recent { + gzip off; add_header Cache-Control "public, max-age=10"; - add_header Content-Type "application/json"; - add_header Content-Encoding "gzip"; + add_header Content-Encoding "br"; } location ~ trace_full { + gzip off; add_header Cache-Control "public, max-age=60"; - add_header Content-Type "application/json"; - add_header Content-Encoding "gzip"; + add_header Content-Encoding "br"; } } location ~ globe_.*\.json$ { @@ -25,7 +25,7 @@ location /INSTANCE/globe_history/ { alias /var/globe_history/; add_header Cache-Control "public, max-age=600"; add_header Content-Type "application/json"; - add_header Content-Encoding "gzip"; + add_header Content-Encoding "br"; } location /INSTANCE/chunks/ {