diff --git a/88-tar1090.conf b/88-tar1090.conf index bcf30f7..c3b54f5 100644 --- a/88-tar1090.conf +++ b/88-tar1090.conf @@ -27,6 +27,31 @@ $HTTP["url"] =~ "^/INSTANCE/chunks/current_.*gz$" { "Content-Type" => "application/json", ) } +$HTTP["url"] =~ "^/INSTANCE/db/.*\.json$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=86400", + ) +} +$HTTP["url"] =~ "^/INSTANCE/.*\.png$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=31536000", + ) +} +$HTTP["url"] =~ "^/INSTANCE/spinny.gif$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=31536000", + ) +} +$HTTP["url"] =~ "^/INSTANCE/.*\.js$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=31536000", + ) +} +$HTTP["url"] =~ "^/INSTANCE/.*\.css$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=31536000", + ) +} # Add CORS header $HTTP["url"] =~ "^/INSTANCE/data/.*\.json$" { diff --git a/html/index.html b/html/index.html index 4dd3ec5..fd9c8a1 100644 --- a/html/index.html +++ b/html/index.html @@ -5,29 +5,29 @@ - - - - - - - - + + + + + + + + - - + + - - + + - - - - - - - - + + + + + + + + dump1090-fa @@ -531,10 +531,10 @@
Aircraft Positions
-
+
Debug tracks
@@ -576,9 +576,9 @@
-
+
H