summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2021-11-15 15:03:17 -0800
committerAlec Warner <antarus@gentoo.org>2021-11-15 15:03:17 -0800
commit0781f60477a762107d86b6583f9609c1976adbb3 (patch)
treeb8cdc235d4858f10bd77700883ae862c6d85949a
parentGemfile: add puma-daemon and downgrade again (diff)
downloadinfra-status-0781f60477a762107d86b6583f9609c1976adbb3.tar.gz
infra-status-0781f60477a762107d86b6583f9609c1976adbb3.tar.bz2
infra-status-0781f60477a762107d86b6583f9609c1976adbb3.zip
For the main page, add a last modified header.
Ideally, the CDN can HEAD and take updates faster. Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--infra-status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/infra-status.rb b/infra-status.rb
index ed1851b..defc5e5 100644
--- a/infra-status.rb
+++ b/infra-status.rb
@@ -24,6 +24,7 @@ configure do
end
get '/' do
+ last_modified ServiceRegistry.instance.load_date
erb :index
end