summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2021-11-15 15:07:18 -0800
committerAlec Warner <antarus@gentoo.org>2021-11-15 15:07:18 -0800
commite8f6f22cf7e3dc289176922ee77c3860ea02ddc1 (patch)
tree56ba3fa2aaa466c403d4b16a4ab0ca0aa038daf6
parentFor the main page, add a last modified header. (diff)
downloadinfra-status-e8f6f22cf7e3dc289176922ee77c3860ea02ddc1.tar.gz
infra-status-e8f6f22cf7e3dc289176922ee77c3860ea02ddc1.tar.bz2
infra-status-e8f6f22cf7e3dc289176922ee77c3860ea02ddc1.zip
Take the most recent loading of status or notices.
Don't just use status; as a notice posting is also on the main page. Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--infra-status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra-status.rb b/infra-status.rb
index defc5e5..8ff6d86 100644
--- a/infra-status.rb
+++ b/infra-status.rb
@@ -24,7 +24,7 @@ configure do
end
get '/' do
- last_modified ServiceRegistry.instance.load_date
+ last_modified [ServiceRegistry.instance.load_date, NoticeStore.instance.load_date].max
erb :index
end