diff --git a/88-tar1090.conf b/88-tar1090.conf index e722787..7c4919b 100644 --- a/88-tar1090.conf +++ b/88-tar1090.conf @@ -49,7 +49,7 @@ $HTTP["url"] =~ "^/INSTANCE/data/icao_.*\.json$" { } $HTTP["url"] =~ "^/INSTANCE/db/.*\.json$" { setenv.add-response-header += ( - "Cache-Control" => "public, max-age=1209600", + "Cache-Control" => "public, max-age=100000", ) } $HTTP["url"] =~ "^/INSTANCE/.*\.png$" { diff --git a/html/script.js b/html/script.js index 16d32fe..96e33ae 100644 --- a/html/script.js +++ b/html/script.js @@ -3097,7 +3097,6 @@ function globeIndexes() { x1 = -180; x2 = 180; } - console.log(y1 + ' ' + y2); if (y1 < -90) y1 = -90; if (y2 > 90) diff --git a/nginx.conf b/nginx.conf index 94d3bc9..c12d125 100644 --- a/nginx.conf +++ b/nginx.conf @@ -33,10 +33,10 @@ location /INSTANCE { alias HTMLPATH/; try_files $uri $uri/ =404; location ~ db/.*\.json$ { - add_header Cache-Control "public, max-age=1209600"; + add_header Cache-Control "public, max-age=100000"; } location ~ .*\.png$ { - add_header Cache-Control "public, max-age=2419200"; + add_header Cache-Control "public, max-age=1209600"; } location ~ .*\.gif$ { add_header Cache-Control "public, max-age=1209600"; diff --git a/nginx_webroot.conf b/nginx_webroot.conf index 3cb7023..22d57ce 100644 --- a/nginx_webroot.conf +++ b/nginx_webroot.conf @@ -33,7 +33,7 @@ location / { alias /usr/local/share/tar1090/html/; try_files $uri $uri/ =404; location ~ db/.*\.json$ { - add_header Cache-Control "public, max-age=86400"; + add_header Cache-Control "public, max-age=100000"; } location ~ .*\.png$ { add_header Cache-Control "public, max-age=1209600";