brotli -.-

This commit is contained in:
Matthias Wirth
2020-01-31 01:08:40 +01:00
parent 6b32b306c5
commit 42de111c2d
2 changed files with 8 additions and 8 deletions

View File

@@ -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;

View File

@@ -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/ {