From: Marius Gavrilescu Date: Sun, 22 Mar 2015 19:53:01 +0000 (+0200) Subject: Merge branch 'master' into newmc X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=2f64890f1e92658a274f47d6bd7d2baf587bf179;p=plack-app-gruntmaster.git Merge branch 'master' into newmc --- 2f64890f1e92658a274f47d6bd7d2baf587bf179 diff --cc app.psgi index 290ef4b,f7c85ff..eee1ad7 --- a/app.psgi +++ b/app.psgi @@@ -44,6 -44,7 +44,7 @@@ sub add_headers my $resp = $app->($_[0]); my $hdrs = Plack::Util::headers($resp->[1]); $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY); - $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; ++ $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; $hdrs->set('Cache-Control', 'public, max-age=604800') if $_[0]->{PATH_INFO} =~ qr,^/static/,; $resp->[1] = $hdrs->headers; $resp;