X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=5bed878e4767c9806ea4aeba7e533b3278f68ba6;hb=9da2f4958089ae517865b808be61bb12d43b61de;hp=20092c9bda0da036e7597ce1da2eddbad3530357;hpb=5a879d9a88280c4b0351f5e19dfb8a8269399ccb;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 20092c9..5bed878 100644 --- a/app.psgi +++ b/app.psgi @@ -55,7 +55,8 @@ sub authenticate { 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';