builder {
enable 'ContentLength';
- enable 'Static', path => qr,/static/,;
+ enable_if { $_[0]->{PATH_INFO} =~ qr,^/static/,} Header => set => ['Cache-Control', 'public, max-age=604800'];
+ enable 'Static', path => qr,^/static/,;
enable 'Log4perl', category => 'plack', conf => 'log.conf';
enable \&require_admin;
enable_if \&some_auth_required, 'Auth::Basic', authenticator => \&authenticate, realm => 'Gruntmaster 6000';