From ef802279ed364f3288a37ac048123329af815a48 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 15 Sep 2011 15:22:00 +0000 Subject: [PATCH] use build timestamp as last-modified header on download --- src/lib/Hydra/Controller/Build.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index ca51b6b5..fae03c53 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -197,6 +197,7 @@ sub download : Chained('build') PathPart { notFound($c, "Path $path is a directory.") if -d $path; $c->serve_static_file($path); + $c->response->headers->last_modified($c->stash->{build}->timestamp); }