traces are now gzipped

This commit is contained in:
Matthias Wirth
2020-01-11 16:49:15 +01:00
parent 0be7624614
commit f7c458b86e
4 changed files with 15 additions and 4 deletions

View File

@@ -4,8 +4,10 @@ location /INSTANCE/data/ {
location ~ aircraft\.json$ {
add_header Cache-Control "public, max-age=0";
}
location ~ trace_.*\.json$ {
location /INSTANCE/data/traces/ {
add_header Cache-Control "public, max-age=10";
add_header Content-Type "application/json";
add_header Content-Encoding "gzip";
}
location ~ globe_.*\.json$ {
add_header Cache-Control "public, max-age=2";