diff --git a/html/planeObject.js b/html/planeObject.js index b77bcde..1f593d7 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -861,6 +861,16 @@ PlaneObject.prototype.processTrace = function(options) { } } } + if (this.fullTrace && this.fullTrace.trace + && this.recentTrace && this.recentTrace.trace) { + let t1 = this.fullTrace.trace; + let t2 = this.recentTrace.trace; + let end1 = this.fullTrace.timestamp + t1[t1.length-1][0]; + let start2 = this.recentTrace.timestamp; + if (end1 < start2) + console.log("Insufficient recent trace overlap!"); + } + for (let j = 0; j < 2; j++) { if (j == 0) { diff --git a/nginx.conf b/nginx.conf index 2dd5918..c9166af 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,12 +7,12 @@ location /INSTANCE/data/ { location /INSTANCE/data/traces/ { location ~ trace_recent { gzip off; - add_header Cache-Control "public, max-age=10"; + add_header Cache-Control "public, max-age=5"; add_header Content-Encoding "gzip"; } location ~ trace_full { gzip off; - add_header Cache-Control "public, max-age=60"; + add_header Cache-Control "public, max-age=120"; add_header Content-Encoding "gzip"; } }