Minor changes for code publication and persistant method to VC
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index c83efcc..a19a916 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -29,6 +29,15 @@
};
}) if $self->mode eq 'production';
+ # Cache static assets
+ $self->hook(
+ after_static => sub {
+ my $res = shift->res;
+ if ($res->code) {
+ $res->headers->cache_control('public, max-age=172800');
+ };
+ });
+
# Set secrets for signed cookies
if (-e (my $secret = $self->home . '/kalamar.secret')) {
$self->secrets([