X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=5bed878e4767c9806ea4aeba7e533b3278f68ba6;hb=7e3d8247f03853c8fd28a48dcd4681a02df32cdd;hp=20092c9bda0da036e7597ce1da2eddbad3530357;hpb=ff57a758b0a8e3389c99b75682c2c5646f47ae99;p=gruntmaster-page.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';